org.apache.hadoop.fs.http.server
Class AuthFilter

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

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

Subclass of hadoop-auth AuthenticationFilter that obtains its configuration from HttpFSServer's server configuration.


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
protected  Properties getConfiguration(String configPrefix, javax.servlet.FilterConfig filterConfig)
          Returns the hadoop-auth configuration from HttpFSServer's configuration.
 
Methods inherited from class org.apache.hadoop.security.authentication.server.AuthenticationFilter
createCookie, destroy, doFilter, 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 configPrefix,
                                      javax.servlet.FilterConfig filterConfig)
Returns the hadoop-auth configuration from HttpFSServer's configuration.

It returns all HttpFSServer's configuration properties prefixed with httpfs.authentication. The httpfs.authentication prefix is removed from the returned property names.

Overrides:
getConfiguration in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
Parameters:
configPrefix - parameter not used.
filterConfig - parameter not used.
Returns:
hadoop-auth configuration read from HttpFSServer's configuration.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.