com.ibm.itim.remoteservices.provider
Class ServiceCallbackHandler

java.lang.Object
  |
  +--com.ibm.itim.remoteservices.provider.ServiceCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

public final class ServiceCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler

Used in event notification and asynchronous request processing. An instance of this class should be passed to the LoginContext when authenticating.


Field Summary
static java.lang.String SERVICE_LOGIN_CONTEXT
          Name of login context to login with.
 
Constructor Summary
ServiceCallbackHandler(java.lang.String tenantID, java.lang.String name, char[] password, java.lang.String serviceFilter)
          Creates a ServiceCallbackHandler object.
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Implements required method in CallbackHandler.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_LOGIN_CONTEXT

public static final java.lang.String SERVICE_LOGIN_CONTEXT
Name of login context to login with.
Constructor Detail

ServiceCallbackHandler

public ServiceCallbackHandler(java.lang.String tenantID,
                              java.lang.String name,
                              char[] password,
                              java.lang.String serviceFilter)
Creates a ServiceCallbackHandler object.
Parameters:
tenantID - The identifier of the tenant
name - the name of the principal used to authenticate with
password - the password of the user
serviceFilter - ldap filter to locate the service via findService
Method Detail

handle

public final void handle(javax.security.auth.callback.Callback[] callbacks)
                  throws javax.security.auth.callback.UnsupportedCallbackException
Implements required method in CallbackHandler. At presently the only supported callback is ServiceCallback.
Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - an array of ServiceCallback objects
See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])