public class SaslNettyServer
extends org.apache.hadoop.security.SaslRpcServer
| Modifier and Type | Class and Description |
|---|---|
static class |
SaslNettyServer.SaslDigestCallbackHandler
CallbackHandler for SASL DIGEST-MD5 mechanism
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG
Logger
|
| Constructor and Description |
|---|
SaslNettyServer(org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager secretManager)
Constructor
|
SaslNettyServer(org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager secretManager,
org.apache.hadoop.security.SaslRpcServer.AuthMethod authMethod)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getUserName() |
boolean |
isComplete() |
byte[] |
response(byte[] token)
Used by SaslTokenMessage::processToken() to respond to server SASL tokens.
|
public SaslNettyServer(org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager secretManager)
throws IOException
secretManager - supplied by SaslServerHandler.IOExceptionpublic SaslNettyServer(org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager secretManager,
org.apache.hadoop.security.SaslRpcServer.AuthMethod authMethod)
throws IOException
secretManager - supplied by SaslServerHandler.authMethod - Authentication methodIOExceptionpublic boolean isComplete()
public String getUserName()
public byte[] response(byte[] token)
token - Server's SASL tokenCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.