Class SaslAuthMethod

java.lang.Object
org.apache.hadoop.hbase.security.provider.SaslAuthMethod

@LimitedPrivate("Authentication") @Evolving public class SaslAuthMethod extends Object
Describes the way in which some SaslClientAuthenticationProvider authenticates over SASL.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final byte
     
    private final org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod
     
    private final String
     
    private final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SaslAuthMethod(String name, byte code, String saslMech, org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod method)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod
    Returns the Hadoop UserGroupInformation.AuthenticationMethod for this method.
    byte
    Returns the unique value to identify this authentication method among other HBase auth methods.
    Returns the unique name to identify this authentication method among other HBase auth methods.
    Returns the SASL mechanism used by this authentication method.
    int
     

    Methods inherited from class java.lang.Object

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

    • name

      private final String name
    • code

      private final byte code
    • saslMech

      private final String saslMech
    • method

      private final org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod method
  • Constructor Details

    • SaslAuthMethod

      public SaslAuthMethod(String name, byte code, String saslMech, org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod method)
  • Method Details

    • getName

      public String getName()
      Returns the unique name to identify this authentication method among other HBase auth methods.
    • getCode

      public byte getCode()
      Returns the unique value to identify this authentication method among other HBase auth methods.
    • getSaslMechanism

      Returns the SASL mechanism used by this authentication method.
    • getAuthMethod

      public org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod getAuthMethod()
      Returns the Hadoop UserGroupInformation.AuthenticationMethod for this method.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object