org.apache.hadoop.hdfs.web
Class AuthFilter

java.lang.Object
  extended by org.apache.hadoop.security.authentication.server.AuthenticationFilter
      extended by org.apache.hadoop.hdfs.web.AuthFilter
All Implemented Interfaces:
javax.servlet.Filter

public class AuthFilter
extends org.apache.hadoop.security.authentication.server.AuthenticationFilter

Subclass of AuthenticationFilter that obtains Hadoop-Auth configuration for webhdfs.


Field Summary
 
Fields inherited from class org.apache.hadoop.security.authentication.server.AuthenticationFilter
AUTH_TOKEN_VALIDITY, AUTH_TYPE, CONFIG_PREFIX, COOKIE_DOMAIN, COOKIE_PATH, SIGNATURE_SECRET
 
Constructor Summary
AuthFilter()
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.hadoop.security.authentication.server.AuthenticationFilter
createCookie, destroy, getAuthenticationHandler, getCookieDomain, getCookiePath, getRequestURL, getToken, getValidity, init, isRandomSecret
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthFilter

public AuthFilter()
Method Detail

getConfiguration

protected Properties getConfiguration(String prefix,
                                      javax.servlet.FilterConfig config)
                               throws javax.servlet.ServletException
Returns the filter configuration properties, including the ones prefixed with CONF_PREFIX. The prefix is removed from the returned property names.

Overrides:
getConfiguration in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
Parameters:
prefix - parameter not used.
config - parameter contains the initialization values.
Returns:
Hadoop-Auth configuration properties.
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain filterChain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Overrides:
doFilter in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
Throws:
IOException
javax.servlet.ServletException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.