@Override
  public boolean equals(Object o) {
    if (!(o instanceof SaslAuthMethod)) {
      return false;
    }
    SaslAuthMethod other = (SaslAuthMethod) o;
    return Objects.equals(name, other.name) && code == other.code
      && Objects.equals(saslMech, other.saslMech) && Objects.equals(method, other.method);
  }
Returns the Hadoop {@link AuthenticationMethod} for this method.
hbase-client/src/main/java/org/apache/hadoop/hbase/security/provider/SaslAuthMethod.java