Class PlainSaslServerCallbackHandler
- java.lang.Object
-
- alluxio.security.authentication.plain.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 Summary
Constructors Constructor Description PlainSaslServerCallbackHandler(AuthenticationProvider authenticationProvider, ImpersonationAuthenticator authenticator)
Constructs a new callback handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(javax.security.auth.callback.Callback[] callbacks)
-
-
-
Constructor Detail
-
PlainSaslServerCallbackHandler
public PlainSaslServerCallbackHandler(AuthenticationProvider authenticationProvider, ImpersonationAuthenticator authenticator)
Constructs a new callback handler.- Parameters:
authenticationProvider
- the authentication provider usedauthenticator
- 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 interfacejavax.security.auth.callback.CallbackHandler
- Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
-
-