DigestAuthMethod, ScramAuthMethodpublic class TokenAuthMethod extends RpcAuthMethod
authcode, authenticationMethod, mechanismName, simpleName| Modifier | Constructor | Description |
|---|---|---|
protected |
TokenAuthMethod(byte code,
java.lang.String simpleName,
java.lang.String mechanismName,
UserGroupInformation.AuthenticationMethod authMethod) |
| Modifier and Type | Method | Description |
|---|---|---|
static byte[] |
decodeIdentifier(java.lang.String identifier) |
|
static java.lang.String |
encodeIdentifier(byte[] identifier) |
|
static char[] |
encodePassword(byte[] password) |
|
UserGroupInformation |
getAuthorizedUgi(java.lang.String authorizedId,
SecretManager secretManager) |
|
static <T extends TokenIdentifier> |
getIdentifier(java.lang.String id,
SecretManager<T> secretManager) |
|
java.lang.String |
getProtocol() |
|
java.lang.String |
getServerId() |
|
boolean |
isProxyAllowed() |
|
boolean |
isSasl() |
false by default |
createCallbackHandler, createSaslClient, createSaslServer, equals, getAuthCode, getAuthenticationMethod, getMechanismName, getUser, hashCode, isNegotiable, loginModules, reLogin, shouldReLogin, toString, write, writeUGIprotected TokenAuthMethod(byte code,
java.lang.String simpleName,
java.lang.String mechanismName,
UserGroupInformation.AuthenticationMethod authMethod)
public boolean isProxyAllowed()
isProxyAllowed in class RpcAuthMethodpublic UserGroupInformation getAuthorizedUgi(java.lang.String authorizedId, SecretManager secretManager) throws java.io.IOException
getAuthorizedUgi in class RpcAuthMethodjava.io.IOExceptionpublic boolean isSasl()
RpcAuthMethodfalse by defaultisSasl in class RpcAuthMethodpublic java.lang.String getProtocol()
throws java.io.IOException
getProtocol in class RpcAuthMethodjava.io.IOExceptionpublic java.lang.String getServerId()
throws java.io.IOException
getServerId in class RpcAuthMethodjava.io.IOExceptionpublic static char[] encodePassword(byte[] password)
public static <T extends TokenIdentifier> T getIdentifier(java.lang.String id, SecretManager<T> secretManager) throws SecretManager.InvalidToken
SecretManager.InvalidTokenpublic static java.lang.String encodeIdentifier(byte[] identifier)
public static byte[] decodeIdentifier(java.lang.String identifier)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.