Package org.apache.hadoop.hbase.security
Class SaslUtil
java.lang.Object
org.apache.hadoop.hbase.security.SaslUtil
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
static final String
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
decodeIdentifier
(String identifier) static String
encodeIdentifier
(byte[] identifier) static char[]
encodePassword
(byte[] password) static SaslUtil.QualityOfProtection
ReturnsSaslUtil.QualityOfProtection
corresponding to the givenstringQop
value.initSaslProperties
(String rpcProtection) Initialize SASL properties for a given RPC protection level.(package private) static void
safeDispose
(SaslClient saslClient) (package private) static void
safeDispose
(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.QualityOfProtection
corresponding to the givenstringQop
value.- 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
-