@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public class SaslRpcServer
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SaslRpcServer.AuthMethod |
Authentication method
|
static class |
SaslRpcServer.QualityOfProtection |
|
static class |
SaslRpcServer.SaslDigestCallbackHandler |
CallbackHandler for SASL DIGEST-MD5 mechanism
|
static class |
SaslRpcServer.SaslGssCallbackHandler |
CallbackHandler for SASL GSSAPI Kerberos mechanism
|
| Modifier and Type | Field | Description |
|---|---|---|
RpcAuthMethod |
authMethod |
|
static org.slf4j.Logger |
LOG |
|
java.lang.String |
mechanism |
|
java.lang.String |
protocol |
|
static java.lang.String |
SASL_AUTH_SECRET_MANAGER |
|
static java.lang.String |
SASL_AUTH_TOKEN |
|
static java.lang.String |
SASL_DEFAULT_REALM |
|
static java.lang.String |
SASL_KERBEROS_PRINCIPAL |
|
java.lang.String |
serverId |
| Constructor | Description |
|---|---|
SaslRpcServer(RpcAuthMethod authMethod) |
| Modifier and Type | Method | Description |
|---|---|---|
javax.security.sasl.SaslServer |
create(Server.Connection connection,
java.util.Map<java.lang.String,java.lang.Object> saslProperties,
SecretManager<TokenIdentifier> secretManager) |
|
static <T extends TokenIdentifier> |
getIdentifier(java.lang.String id,
SecretManager<T> secretManager) |
|
static void |
init(Configuration conf) |
|
static java.lang.String[] |
splitKerberosName(java.lang.String fullName) |
Splitting fully qualified Kerberos name into parts.
|
public static final org.slf4j.Logger LOG
public static final java.lang.String SASL_DEFAULT_REALM
public static final java.lang.String SASL_AUTH_SECRET_MANAGER
public static final java.lang.String SASL_KERBEROS_PRINCIPAL
public static final java.lang.String SASL_AUTH_TOKEN
public RpcAuthMethod authMethod
public java.lang.String mechanism
public java.lang.String protocol
public java.lang.String serverId
@Private @Unstable public SaslRpcServer(RpcAuthMethod authMethod) throws java.io.IOException
java.io.IOException@Private @Unstable public javax.security.sasl.SaslServer create(Server.Connection connection, java.util.Map<java.lang.String,java.lang.Object> saslProperties, SecretManager<TokenIdentifier> secretManager) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static void init(Configuration conf)
public static <T extends TokenIdentifier> T getIdentifier(java.lang.String id, SecretManager<T> secretManager) throws SecretManager.InvalidToken
SecretManager.InvalidTokenpublic static java.lang.String[] splitKerberosName(java.lang.String fullName)
fullName - fullName.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.