public static byte[] decodeIdentifier(String identifier) {
    return Base64.getDecoder().decode(Bytes.toBytes(identifier));
  }
Splitting fully qualified Kerberos name into parts
hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslUtil.java