Class DigestSaslServerAuthenticationProvider.SaslDigestCallbackHandler
java.lang.Object
org.apache.hadoop.hbase.security.provider.DigestSaslServerAuthenticationProvider.SaslDigestCallbackHandler
- All Implemented Interfaces:
CallbackHandler
- Enclosing class:
- DigestSaslServerAuthenticationProvider
private static class DigestSaslServerAuthenticationProvider.SaslDigestCallbackHandler
extends Object
implements CallbackHandler
CallbackHandler for SASL DIGEST-MD5 mechanism
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicReference<org.apache.hadoop.security.UserGroupInformation>
private final org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier>
-
Constructor Summary
ConstructorDescriptionSaslDigestCallbackHandler
(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, AtomicReference<org.apache.hadoop.security.UserGroupInformation> attemptingUser) -
Method Summary
Modifier and TypeMethodDescriptionprivate char[]
getPassword
(org.apache.hadoop.security.token.TokenIdentifier tokenid) void
-
Field Details
-
secretManager
private final org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager -
attemptingUser
-
-
Constructor Details
-
SaslDigestCallbackHandler
public SaslDigestCallbackHandler(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, AtomicReference<org.apache.hadoop.security.UserGroupInformation> attemptingUser)
-
-
Method Details
-
getPassword
private char[] getPassword(org.apache.hadoop.security.token.TokenIdentifier tokenid) throws org.apache.hadoop.security.token.SecretManager.InvalidToken - Throws:
org.apache.hadoop.security.token.SecretManager.InvalidToken
-
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
-