public class AuthFilter
extends org.apache.hadoop.security.authentication.server.AuthenticationFilter
AuthenticationFilter
that
obtains Hadoop-Auth configuration for webhdfs.Modifier and Type | Field and Description |
---|---|
static String |
CONF_PREFIX |
AUTH_TOKEN_MAX_INACTIVE_INTERVAL, AUTH_TOKEN_VALIDITY, AUTH_TYPE, CONFIG_PREFIX, COOKIE_DOMAIN, COOKIE_PATH, COOKIE_PERSISTENT, SIGNATURE_SECRET, SIGNATURE_SECRET_FILE, SIGNER_SECRET_PROVIDER, SIGNER_SECRET_PROVIDER_ATTRIBUTE
Constructor and Description |
---|
AuthFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain) |
protected Properties |
getConfiguration(String prefix,
javax.servlet.FilterConfig config)
Returns the filter configuration properties,
including the ones prefixed with
CONF_PREFIX . |
constructSecretProvider, createAuthCookie, destroy, doFilter, getAuthenticationHandler, getConfiguration, getCookieDomain, getCookiePath, getMaxInactiveInterval, getRequestURL, getToken, getValidity, init, initializeAuthHandler, initializeSecretProvider, isCookiePersistent, isCustomSignerSecretProvider, isRandomSecret, verifyTokenType
public static final String CONF_PREFIX
protected Properties getConfiguration(String prefix, javax.servlet.FilterConfig config) throws javax.servlet.ServletException
CONF_PREFIX
.
The prefix is removed from the returned property names.getConfiguration
in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
prefix
- parameter not used.config
- parameter contains the initialization values.javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
doFilter
in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
IOException
javax.servlet.ServletException
Copyright © 2018 Apache Software Foundation. All Rights Reserved.