public static AuthMethod valueOf(byte code) {
    final int i = (code & 0xff) - FIRST_CODE;
    return i < 0 || i >= values().length ? null : values()[i];
  }
Return the object represented by the code.
hbase-client/src/main/java/org/apache/hadoop/hbase/security/AuthMethod.java