Class DSAMECallbackHandler

  • All Implemented Interfaces:
    CallbackHandler

    public class DSAMECallbackHandler
    extends Object
    implements CallbackHandler
    This class is the OpenAM implementation for Java CallbackHandler and 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.
    • Constructor Detail

      • DSAMECallbackHandler

        public DSAMECallbackHandler​(AMLoginContext am,
                                    boolean isPureJAAS)
        Creates DSAMECallbackHandler object and it associates login thread and login state with callback hndler
        Parameters:
        am - AMLoginContext for 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 Callback object(s) passed in to retrieve or display the requested information.

        Specified by:
        handle in interface CallbackHandler
        Parameters:
        callbacks - an array of Callback objects 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 the callbacks parameter.