Class DSAMECallbackHandler
- java.lang.Object
-
- com.sun.identity.authentication.service.DSAMECallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
public class DSAMECallbackHandler extends Object implements CallbackHandler
This class is the OpenAM implementation for JavaCallbackHandlerand it can be passed to underlying auth services so that it may interact with other components to retrieve specific authentication data, such as usernames and passwords, or to display certain information, such as error and warning messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDSAMECallbackHandler.DSAMECallbackHandlerErrorThis error is used to control the authentication processing: if there is a problem while processing the callbacks this error prevents the auth framework consider this error as an authentication module failure.
-
Constructor Summary
Constructors Constructor Description DSAMECallbackHandler(AMLoginContext am, boolean isPureJAAS)CreatesDSAMECallbackHandlerobject and it associates login thread and login state with callback hndler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Callback[] callbacks)Retrieves or displays the information requested in the provided Callbacks.
-
-
-
Constructor Detail
-
DSAMECallbackHandler
public DSAMECallbackHandler(AMLoginContext am, boolean isPureJAAS)
CreatesDSAMECallbackHandlerobject and it associates login thread and login state with callback hndler- Parameters:
am-AMLoginContextfor this callback
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
Retrieves or displays the information requested in the provided Callbacks.
This method implementation checks the instance(s) of the
Callbackobject(s) passed in to retrieve or display the requested information.- Specified by:
handlein interfaceCallbackHandler- Parameters:
callbacks- an array ofCallbackobjects provided by an underlying security service which contains the information requested to be retrieved or displayed.- Throws:
IOException- if an input or output error occurs.UnsupportedCallbackException- if the implementation of this method does not support one or more of the Callbacks specified in thecallbacksparameter.
-
-