Class ProxyUserAuthenticationFilter

java.lang.Object
org.apache.hadoop.security.authentication.server.AuthenticationFilter
org.apache.hadoop.security.authentication.server.ProxyUserAuthenticationFilter
All Implemented Interfaces:
javax.servlet.Filter

public class ProxyUserAuthenticationFilter extends org.apache.hadoop.security.authentication.server.AuthenticationFilter
AuthenticationFilter which adds support to perform operations using end user instead of proxy user. Fetches the end user from doAs Query Parameter.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    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
    protected void
    doFilter(javax.servlet.FilterChain filterChain, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected Configuration
    getProxyuserConfiguration(javax.servlet.FilterConfig filterConfig)
     
    void
    init(javax.servlet.FilterConfig filterConfig)
     
    static javax.servlet.http.HttpServletRequest
    toLowerCase(javax.servlet.http.HttpServletRequest request)
     

    Methods inherited from class org.apache.hadoop.security.authentication.server.AuthenticationFilter

    constructSecretProvider, createAuthCookie, destroy, doFilter, 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
  • Field Details

  • Constructor Details

    • ProxyUserAuthenticationFilter

      public ProxyUserAuthenticationFilter()
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Overrides:
      init in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
      Throws:
      javax.servlet.ServletException
    • doFilter

      protected void doFilter(javax.servlet.FilterChain filterChain, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
      Overrides:
      doFilter in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
      Throws:
      IOException
      javax.servlet.ServletException
    • getProxyuserConfiguration

      protected Configuration getProxyuserConfiguration(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Throws:
      javax.servlet.ServletException
    • toLowerCase

      public static javax.servlet.http.HttpServletRequest toLowerCase(javax.servlet.http.HttpServletRequest request)