@InterfaceAudience.Private public class SaslUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SaslUtil.QualityOfProtection |
Modifier and Type | Field and Description |
---|---|
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)
Initialize SASL properties for a given RPC protection level.
|
static String[] |
splitKerberosName(String fullName)
Splitting fully qualified Kerberos name into parts
|
public static final String SASL_DEFAULT_REALM
public static final int SWITCH_TO_SIMPLE_AUTH
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.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.