Class DigestSaslServerAuthenticationProvider.SaslDigestCallbackHandler

java.lang.Object
org.apache.hadoop.hbase.security.provider.DigestSaslServerAuthenticationProvider.SaslDigestCallbackHandler
All Implemented Interfaces:
CallbackHandler
Enclosing class:
DigestSaslServerAuthenticationProvider

CallbackHandler for SASL DIGEST-MD5 mechanism
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final AtomicReference<org.apache.hadoop.security.UserGroupInformation>
     
    private final org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SaslDigestCallbackHandler(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, AtomicReference<org.apache.hadoop.security.UserGroupInformation> attemptingUser)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private char[]
    getPassword(org.apache.hadoop.security.token.TokenIdentifier tokenid)
     
    void
    handle(Callback[] callbacks)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • secretManager

      private final org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager
    • attemptingUser

      private final AtomicReference<org.apache.hadoop.security.UserGroupInformation> 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 interface CallbackHandler
      Throws:
      org.apache.hadoop.security.token.SecretManager.InvalidToken
      UnsupportedCallbackException