Class PlainSaslServerCallbackHandler

  • All Implemented Interfaces:
    javax.security.auth.callback.CallbackHandler

    public final class PlainSaslServerCallbackHandler
    extends java.lang.Object
    implements javax.security.auth.callback.CallbackHandler
    A callback that is used by the SASL mechanisms to get further information to complete the authentication. For example, a SASL mechanism might use this callback handler to do verification operation.
    • Constructor Detail

      • PlainSaslServerCallbackHandler

        public PlainSaslServerCallbackHandler​(AuthenticationProvider authenticationProvider,
                                              ImpersonationAuthenticator authenticator)
        Constructs a new callback handler.
        Parameters:
        authenticationProvider - the authentication provider used
        authenticator - the impersonation authenticator
    • Method Detail

      • handle

        public void handle​(javax.security.auth.callback.Callback[] callbacks)
                    throws java.io.IOException,
                           javax.security.auth.callback.UnsupportedCallbackException
        Specified by:
        handle in interface javax.security.auth.callback.CallbackHandler
        Throws:
        java.io.IOException
        javax.security.auth.callback.UnsupportedCallbackException