public final class DigestAuthMethod extends RpcAuthMethod
| Modifier and Type | Class and Description |
|---|---|
static class |
DigestAuthMethod.SaslDigestCallbackHandler
CallbackHandler for SASL DIGEST-MD5 mechanism
|
authcode, authenticationMethod, mechanismName, simpleName| Modifier and Type | Method and Description |
|---|---|
SaslClient |
createSaslClient(Map<String,Object> saslProperties)
Implementors which uses SASL authentication must return
true
for isSasl() method and return and instance of
SaslClient. |
SaslServer |
createSaslServer(Server.Connection connection,
Map<String,Object> saslProperties)
Implementors which uses SASL authentication must return
true
for isSasl() method and return and instance of
SaslServer. |
static byte[] |
decodeIdentifier(String identifier) |
static String |
encodeIdentifier(byte[] identifier) |
static char[] |
encodePassword(byte[] password) |
org.apache.hadoop.security.UserGroupInformation |
getAuthorizedUgi(String authorizedId,
org.apache.hadoop.security.token.SecretManager secretManager) |
static <T extends org.apache.hadoop.security.token.TokenIdentifier> |
getIdentifier(String id,
org.apache.hadoop.security.token.SecretManager<T> secretManager) |
String |
getProtocol() |
String |
getServerId() |
boolean |
isProxyAllowed() |
boolean |
isSasl()
false by default |
equals, getAuthCode, getAuthenticationMethod, getMechanismName, getUser, hashCode, isNegotiable, loginModules, reLogin, shouldReLogin, toString, write, writeUGIpublic boolean isProxyAllowed()
isProxyAllowed in class RpcAuthMethodpublic org.apache.hadoop.security.UserGroupInformation getAuthorizedUgi(String authorizedId, org.apache.hadoop.security.token.SecretManager secretManager) throws IOException
getAuthorizedUgi in class RpcAuthMethodIOExceptionpublic boolean isSasl()
RpcAuthMethodfalse by defaultisSasl in class RpcAuthMethodpublic String getProtocol() throws IOException
getProtocol in class RpcAuthMethodIOExceptionpublic String getServerId() throws IOException
getServerId in class RpcAuthMethodIOExceptionpublic SaslClient createSaslClient(Map<String,Object> saslProperties) throws IOException
RpcAuthMethodtrue
for isSasl() method and return and instance of
SaslClient.createSaslClient in class RpcAuthMethodIOExceptionpublic SaslServer createSaslServer(Server.Connection connection, Map<String,Object> saslProperties) throws IOException
RpcAuthMethodtrue
for isSasl() method and return and instance of
SaslServer.createSaslServer in class RpcAuthMethodIOExceptionpublic static char[] encodePassword(byte[] password)
public static <T extends org.apache.hadoop.security.token.TokenIdentifier> T getIdentifier(String id, org.apache.hadoop.security.token.SecretManager<T> secretManager) throws SecretManager.InvalidToken
SecretManager.InvalidTokenpublic static String encodeIdentifier(byte[] identifier)
public static byte[] decodeIdentifier(String identifier)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.