Package com.sas.services.security
Class LoginCallbackHandler
java.lang.Object
com.sas.services.security.LoginCallbackHandler
- All Implemented Interfaces:
Serializable,CallbackHandler
public class LoginCallbackHandler
extends Object
implements Serializable, CallbackHandler
Login callback handler.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLoginCallbackHandler(UserContextInterface user, UserIdentityInterface ident, Map options) Constructs a login callback handler for the specified user context, identity, and options. -
Method Summary
Modifier and TypeMethodDescriptionstatic MapgetDelegateOptionMap(Map optionMap) voidhandle(Callback[] callbacks) Handles the login callback.voidSets the user's context.voidsetDomain(String domain) voidsetIdentity(UserIdentityInterface ident) Sets the user's identity.voidsetOptions(Map options) Sets options.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LoginCallbackHandler
Constructs a login callback handler for the specified user context, identity, and options.- Parameters:
user- User contextident- User identityoptions- Options
-
-
Method Details
-
setIdentity
Sets the user's identity.- Parameters:
ident- User's identity.
-
setContext
Sets the user's context.- Parameters:
user- User's context.
-
setOptions
public void setOptions(Map options) Sets options.- Parameters:
options-
-
setDomain
public void setDomain(String domain) -
handle
public void handle(Callback[] callbacks) throws UnsupportedCallbackException Handles the login callback.- Specified by:
handlein interfaceCallbackHandler- Parameters:
callbacks- Callbacks- Throws:
UnsupportedCallbackException- if an invalid callback is encountered.
-
getDelegateOptionMap
public static Map getDelegateOptionMap(Map optionMap)
-