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_PREFIX

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doFilter(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, toLowerCase

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      doFilter in interface javax.servlet.Filter
      Overrides:
      doFilter in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
      Throws:
      IOException
      javax.servlet.ServletException