Class AuthFilter

java.lang.Object
org.apache.hadoop.security.authentication.server.AuthenticationFilter
org.apache.hadoop.hbase.rest.filter.AuthFilter
All Implemented Interfaces:
javax.servlet.Filter

@Private public class AuthFilter extends org.apache.hadoop.security.authentication.server.AuthenticationFilter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     
    private static final String
     
    private static final int
     

    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 Properties
    getConfiguration(String configPrefix, javax.servlet.FilterConfig filterConfig)
    Returns the configuration to be used by the authentication filter to initialize the authentication handler.

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

    constructSecretProvider, createAuthCookie, destroy, doFilter, doFilter, getAuthenticationHandler, getConfiguration, getCookieDomain, getCookiePath, getMaxInactiveInterval, getRequestURL, getToken, getValidity, init, 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

  • Method Details

    • getConfiguration

      protected Properties getConfiguration(String configPrefix, javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Returns the configuration to be used by the authentication filter to initialize the authentication handler. This filter retrieves all HBase configurations and passes those started with REST_PREFIX to the authentication handler. It is useful to support plugging different authentication handlers.
      Overrides:
      getConfiguration in class org.apache.hadoop.security.authentication.server.AuthenticationFilter
      Throws:
      javax.servlet.ServletException