@InterfaceAudience.Private public class HttpFSKerberosAuthenticator extends KerberosAuthenticator
KerberosAuthenticator subclass that fallback to
HttpFSPseudoAuthenticator.| Modifier and Type | Class and Description |
|---|---|
static class |
HttpFSKerberosAuthenticator.DelegationTokenOperation
DelegationToken operations.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DELEGATION_PARAM |
static String |
DELEGATION_TOKEN_JSON |
static String |
DELEGATION_TOKEN_URL_STRING_JSON |
static String |
OP_PARAM |
static String |
RENEW_DELEGATION_TOKEN_JSON |
static String |
RENEWER_PARAM |
static String |
TOKEN_PARAM |
AUTHORIZATION, NEGOTIATE, WWW_AUTHENTICATE| Constructor and Description |
|---|
HttpFSKerberosAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(URL url,
AuthenticatedURL.Token token)
Performs SPNEGO authentication against the specified URL.
|
static void |
cancelDelegationToken(URI fsURI,
AuthenticatedURL.Token token,
Token<?> dToken) |
static Token<?> |
getDelegationToken(URI fsURI,
InetSocketAddress httpFSAddr,
AuthenticatedURL.Token token,
String renewer) |
protected Authenticator |
getFallBackAuthenticator()
Returns the fallback authenticator if the server does not use
Kerberos SPNEGO HTTP authentication.
|
static void |
injectDelegationToken(Map<String,String> params,
Token<?> dtToken) |
static long |
renewDelegationToken(URI fsURI,
AuthenticatedURL.Token token,
Token<?> dToken) |
setConnectionConfiguratorpublic static final String DELEGATION_PARAM
public static final String TOKEN_PARAM
public static final String RENEWER_PARAM
public static final String DELEGATION_TOKEN_JSON
public static final String DELEGATION_TOKEN_URL_STRING_JSON
public static final String RENEW_DELEGATION_TOKEN_JSON
public static final String OP_PARAM
protected Authenticator getFallBackAuthenticator()
getFallBackAuthenticator in class KerberosAuthenticatorHttpFSPseudoAuthenticator instance.public static void injectDelegationToken(Map<String,String> params, Token<?> dtToken) throws IOException
IOExceptionpublic void authenticate(URL url, AuthenticatedURL.Token token) throws IOException, AuthenticationException
KerberosAuthenticatorOPTIONS request.authenticate in interface Authenticatorauthenticate in class KerberosAuthenticatorurl - the URl to authenticate against.token - the authentication token being used for the user.IOException - if an IO error occurred.AuthenticationException - if an authentication error occurred.public static Token<?> getDelegationToken(URI fsURI, InetSocketAddress httpFSAddr, AuthenticatedURL.Token token, String renewer) throws IOException
IOExceptionpublic static long renewDelegationToken(URI fsURI, AuthenticatedURL.Token token, Token<?> dToken) throws IOException
IOExceptionpublic static void cancelDelegationToken(URI fsURI, AuthenticatedURL.Token token, Token<?> dToken) throws IOException
IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.