@InterfaceAudience.Private
public class HttpFSKerberosAuthenticator
extends org.apache.hadoop.security.authentication.client.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 |
| Constructor and Description |
|---|
HttpFSKerberosAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(URL url,
org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token) |
static void |
cancelDelegationToken(URI fsURI,
org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token,
org.apache.hadoop.security.token.Token<?> dToken) |
static org.apache.hadoop.security.token.Token<?> |
getDelegationToken(URI fsURI,
InetSocketAddress httpFSAddr,
org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token,
String renewer) |
protected org.apache.hadoop.security.authentication.client.Authenticator |
getFallBackAuthenticator()
Returns the fallback authenticator if the server does not use
Kerberos SPNEGO HTTP authentication.
|
static void |
injectDelegationToken(Map<String,String> params,
org.apache.hadoop.security.token.Token<?> dtToken) |
static long |
renewDelegationToken(URI fsURI,
org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token,
org.apache.hadoop.security.token.Token<?> dToken) |
public 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 org.apache.hadoop.security.authentication.client.Authenticator getFallBackAuthenticator()
getFallBackAuthenticator in class org.apache.hadoop.security.authentication.client.KerberosAuthenticatorHttpFSPseudoAuthenticator instance.public static void injectDelegationToken(Map<String,String> params, org.apache.hadoop.security.token.Token<?> dtToken) throws IOException
IOExceptionpublic void authenticate(URL url, org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token) throws IOException, org.apache.hadoop.security.authentication.client.AuthenticationException
authenticate in interface org.apache.hadoop.security.authentication.client.Authenticatorauthenticate in class org.apache.hadoop.security.authentication.client.KerberosAuthenticatorIOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic static org.apache.hadoop.security.token.Token<?> getDelegationToken(URI fsURI, InetSocketAddress httpFSAddr, org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token, String renewer) throws IOException
IOExceptionpublic static long renewDelegationToken(URI fsURI, org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token, org.apache.hadoop.security.token.Token<?> dToken) throws IOException
IOExceptionpublic static void cancelDelegationToken(URI fsURI, org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token, org.apache.hadoop.security.token.Token<?> dToken) throws IOException
IOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.