public static String[] splitKerberosName(String fullName) {
    return Splitter.onPattern("[/@]").splitToStream(fullName).toArray(String[]::new);
  }
Splitting fully qualified Kerberos name into parts
hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslUtil.java