Package org.apache.hadoop.hdfs.web
Class AuthFilter
java.lang.Object
org.apache.hadoop.security.authentication.server.AuthenticationFilter
org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter
org.apache.hadoop.hdfs.web.AuthFilter
- All Implemented Interfaces:
javax.servlet.Filter
public class AuthFilter
extends org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter
Subclass of
AuthenticationFilter that
obtains Hadoop-Auth configuration for webhdfs.-
Field Summary
Fields inherited from class org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter
PROXYUSER_PREFIXFields inherited from class org.apache.hadoop.security.authentication.server.AuthenticationFilter
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) Methods inherited from class org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter
doFilter, getProxyuserConfiguration, init, toLowerCaseMethods inherited from class org.apache.hadoop.security.authentication.server.AuthenticationFilter
constructSecretProvider, createAuthCookie, destroy, getAuthenticationHandler, getConfiguration, getConfiguration, getCookieDomain, getCookiePath, getMaxInactiveInterval, getRequestURL, getToken, getValidity, initializeAuthHandler, initializeSecretProvider, isCookiePersistent, isCustomSignerSecretProvider, isRandomSecret, verifyTokenType
-
Constructor Details
-
AuthFilter
public AuthFilter()
-
-
Method Details
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException - Specified by:
doFilterin interfacejavax.servlet.Filter- Overrides:
doFilterin classorg.apache.hadoop.security.authentication.server.AuthenticationFilter- Throws:
IOExceptionjavax.servlet.ServletException
-