static String encodeIdentifier(byte[] identifier) {
        return new String(Base64.getEncoder().encode(identifier), StandardCharsets.UTF_8);
      }
Create a client-side SASL transport that wraps an underlying transport.

@param methodStr The authentication method to use. Currently only KERBEROS is
              supported.
@param principalConfig The Kerberos principal of the target server.
@param underlyingTransport The underlying transport mechanism, usually a TSocket.
@param saslProps the sasl properties to create the client with
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/security/HadoopThriftAuthBridge.java