Modifier and Type | Class and Description |
---|---|
static class |
SaslUtil.QualityOfProtection |
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
static String |
SASL_DEFAULT_REALM |
static int |
SWITCH_TO_SIMPLE_AUTH |
Constructor and Description |
---|
SaslUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decodeIdentifier(String identifier) |
static String |
encodeIdentifier(byte[] identifier) |
static char[] |
encodePassword(byte[] password) |
static SaslUtil.QualityOfProtection |
getQop(String stringQop)
Returns
SaslUtil.QualityOfProtection
corresponding to the given stringQop value. |
static Map<String,String> |
initSaslProperties(String rpcProtection) |
(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
|
private static final org.slf4j.Logger LOG
public static final String SASL_DEFAULT_REALM
public static final int SWITCH_TO_SIMPLE_AUTH
public SaslUtil()
public static String[] splitKerberosName(String fullName)
public static String encodeIdentifier(byte[] identifier)
public static byte[] decodeIdentifier(String identifier)
public static char[] encodePassword(byte[] password)
public static SaslUtil.QualityOfProtection getQop(String stringQop)
SaslUtil.QualityOfProtection
corresponding to the given stringQop
value.IllegalArgumentException
- If stringQop doesn't match any QOP.public static Map<String,String> initSaslProperties(String rpcProtection)
rpcProtection
- Value of 'hbase.rpc.protection' configuration.static void safeDispose(SaslClient saslClient)
static void safeDispose(SaslServer saslServer)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.