Package org.apache.hadoop.security
Class SaslRpcServer
java.lang.Object
org.apache.hadoop.security.SaslRpcServer
A utility class for dealing with SASL on RPC server
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAuthentication methodstatic enumstatic classCallbackHandler for SASL mechanism.static classCallbackHandler for SASL GSSAPI Kerberos mechanism -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Server.Connection connection, Map<String, ?> saslProperties, SecretManager<TokenIdentifier> secretManager) static <T extends TokenIdentifier>
TgetIdentifier(String id, SecretManager<T> secretManager) static voidinit(Configuration conf) static String[]splitKerberosName(String fullName) Splitting fully qualified Kerberos name into parts.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
SASL_DEFAULT_REALM
- See Also:
-
authMethod
-
mechanism
-
protocol
-
serverId
-
-
Constructor Details
-
SaslRpcServer
- Throws:
IOException
-
-
Method Details
-
create
@Private @Unstable public SaslServer create(Server.Connection connection, Map<String, ?> saslProperties, SecretManager<TokenIdentifier> secretManager) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
init
-
getIdentifier
public static <T extends TokenIdentifier> T getIdentifier(String id, SecretManager<T> secretManager) throws SecretManager.InvalidToken - Throws:
SecretManager.InvalidToken
-
splitKerberosName
Splitting fully qualified Kerberos name into parts.- Parameters:
fullName- fullName.- Returns:
- splitKerberosName.
-