@InterfaceAudience.Private
public class HttpFSAuthenticationFilter
extends org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter
AuthenticationFilter
that obtains its
configuration from HttpFSServer's server configuration.Modifier and Type | Field and Description |
---|---|
static String |
CONF_PREFIX |
static String |
HADOOP_HTTP_CONF_PREFIX |
DELEGATION_TOKEN_SECRET_MANAGER_ATTR, PROXYUSER_PREFIX
AUTH_TOKEN_MAX_INACTIVE_INTERVAL, AUTH_TOKEN_VALIDITY, AUTH_TYPE, CONFIG_PREFIX, COOKIE_DOMAIN, COOKIE_PATH, COOKIE_PERSISTENT, SIGNATURE_SECRET, SIGNER_SECRET_PROVIDER, SIGNER_SECRET_PROVIDER_ATTRIBUTE
Constructor and Description |
---|
HttpFSAuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
protected Properties |
getConfiguration(String configPrefix,
javax.servlet.FilterConfig filterConfig)
Returns the hadoop-auth configuration from HttpFSServer's configuration.
|
protected org.apache.hadoop.conf.Configuration |
getProxyuserConfiguration(javax.servlet.FilterConfig filterConfig) |
doFilter, init, initializeAuthHandler, setAuthHandlerClass, setHandlerAuthMethod
constructSecretProvider, createAuthCookie, destroy, doFilter, getAuthenticationHandler, getConfiguration, getCookieDomain, getCookiePath, getMaxInactiveInterval, getRequestURL, getToken, getValidity, initializeSecretProvider, isCookiePersistent, isCustomSignerSecretProvider, isRandomSecret, verifyTokenType
public static final String CONF_PREFIX
public static final String HADOOP_HTTP_CONF_PREFIX
protected Properties getConfiguration(String configPrefix, javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
It returns all HttpFSServer's configuration properties prefixed with
hadoop.http.authentication
. The
hadoop.http.authentication
prefix is removed from the
returned property names.
getConfiguration
in class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter
configPrefix
- parameter not used.filterConfig
- parameter not used.javax.servlet.ServletException
protected org.apache.hadoop.conf.Configuration getProxyuserConfiguration(javax.servlet.FilterConfig filterConfig)
getProxyuserConfiguration
in class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.