Class HttpCallbackHandler

    • Constructor Detail

      • HttpCallbackHandler

        public HttpCallbackHandler()
    • Method Detail

      • handle

        public void handle​(Callback[] callbacks)
                    throws UnsupportedCallbackException
        Called by Authentication modules to request more information about the request and response message.

        Callbacks currently supported are as follows:

        • CallerPrincipalCallback
        • GroupPrincipalCallback

        This method will handle a CallerPrincipalCallback by creating a Principal from the name stored in the Callback and adding it to the Subject from the Callback. If the name is not populated then the Principal stored in the Callback will be added to the Subject instead.

        This method will handle a GroupPrincipalCallback by create a Principal for each group stored in the Callback and adding them to the Subject from the Callback.

        Specified by:
        handle in interface CallbackHandler
        Parameters:
        callbacks - An array of Callback objects provided by the Authentication modules.
        Throws:
        UnsupportedCallbackException - If a callback is passed which is not supported by this CallbackHandler.