Package org.apache.hadoop.hbase.security
Class SaslUtil
java.lang.Object
org.apache.hadoop.hbase.security.SaslUtil
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerstatic final Stringstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]decodeIdentifier(String identifier) static StringencodeIdentifier(byte[] identifier) static char[]encodePassword(byte[] password) static SaslUtil.QualityOfProtectionReturnsSaslUtil.QualityOfProtectioncorresponding to the givenstringQopvalue.initSaslProperties(String rpcProtection) Initialize SASL properties for a given RPC protection level.(package private) static voidsafeDispose(SaslClient saslClient) (package private) static voidsafeDispose(SaslServer saslServer) static String[]splitKerberosName(String fullName) Splitting fully qualified Kerberos name into parts
-
Field Details
-
LOG
-
SASL_DEFAULT_REALM
- See Also:
-
SWITCH_TO_SIMPLE_AUTH
- See Also:
-
-
Constructor Details
-
SaslUtil
public SaslUtil()
-
-
Method Details
-
splitKerberosName
Splitting fully qualified Kerberos name into parts -
encodeIdentifier
-
decodeIdentifier
-
encodePassword
-
getQop
ReturnsSaslUtil.QualityOfProtectioncorresponding to the givenstringQopvalue.- Throws:
IllegalArgumentException- If stringQop doesn't match any QOP.
-
initSaslProperties
Initialize SASL properties for a given RPC protection level.- Parameters:
rpcProtection- Value of 'hbase.rpc.protection' configuration.- Returns:
- Map with values for SASL properties.
-
safeDispose
-
safeDispose
-