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
Modifier and TypeFieldDescriptionprivate 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Field Details
-
LOG
-
REST_PREFIX
- See Also:
-
REST_PREFIX_LEN
-
-
Constructor Details
-
AuthFilter
public AuthFilter()
-
-
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 classorg.apache.hadoop.security.authentication.server.AuthenticationFilter
- Throws:
javax.servlet.ServletException
-