Class ShadeSaslServerAuthenticationProvider.ShadeSaslServerCallbackHandler
java.lang.Object
org.apache.hadoop.hbase.security.provider.example.ShadeSaslServerAuthenticationProvider.ShadeSaslServerCallbackHandler
- All Implemented Interfaces:
CallbackHandler
- Enclosing class:
- ShadeSaslServerAuthenticationProvider
static class ShadeSaslServerAuthenticationProvider.ShadeSaslServerCallbackHandler
extends Object
implements CallbackHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicReference<org.apache.hadoop.security.UserGroupInformation>
-
Constructor Summary
ConstructorDescriptionShadeSaslServerCallbackHandler
(AtomicReference<org.apache.hadoop.security.UserGroupInformation> attemptingUser, Map<String, char[]> passwordDatabase) -
Method Summary
Modifier and TypeMethodDescription(package private) org.apache.hadoop.security.UserGroupInformation
createUgiForRemoteUser
(String username) void
-
Field Details
-
attemptingUser
-
passwordDatabase
-
-
Constructor Details
-
ShadeSaslServerCallbackHandler
public ShadeSaslServerCallbackHandler(AtomicReference<org.apache.hadoop.security.UserGroupInformation> attemptingUser, Map<String, char[]> passwordDatabase)
-
-
Method Details
-
handle
public void handle(Callback[] callbacks) throws org.apache.hadoop.security.token.SecretManager.InvalidToken, UnsupportedCallbackException - Specified by:
handle
in interfaceCallbackHandler
- Throws:
org.apache.hadoop.security.token.SecretManager.InvalidToken
UnsupportedCallbackException
-
createUgiForRemoteUser
-