static final boolean isValidAuthChar(byte b) {
    return validAuthChars[0xff & b];
  }
A simple validator that validates the labels passed
hbase-client/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityLabelsValidator.java