javax.servlet.Filterpublic class HadoopCoreAuthenticationFilter
extends org.apache.hadoop.security.authentication.server.AuthenticationFilter
AuthenticationFilter exposes several configuration params such as
AuthenticationFilter.AUTH_TOKEN_VALIDITY. Normally these params go into web.xml.
The problem with above is that each webserver (JT/TT/HBase) has to configure these params
separately in the corresponding web.xml files.
This class overrides the above behavior to get the config params from core-site.xml.
All the webservers that depend on hadoop core automatically get a single config defined in core-site.xml.
The config in core-site.xml should go like:
hadoop.http.authentication.signature.secret - 13048203948239
hadoop.http.authentication.token.validity - 48
The default values are hardcoded in AuthenticationFilter itself.
Author: smarellaACTION_PARAM, AUTH_TOKEN_MAX_INACTIVE_INTERVAL, AUTH_TOKEN_VALIDITY, AUTH_TYPE, CONFIG_PREFIX, configPrefix, COOKIE_DOMAIN, COOKIE_PATH, COOKIE_PERSISTENT, SIGNATURE_SECRET, SIGNATURE_SECRET_FILE, SIGNER_SECRET_PROVIDER, SIGNER_SECRET_PROVIDER_ATTRIBUTE, SSO_LOGIN_COOKIE| Constructor | Description |
|---|---|
HadoopCoreAuthenticationFilter() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Properties |
getConfiguration(java.lang.String configPrefix,
javax.servlet.FilterConfig filterConfig) |
constructSecretProvider, createAuthCookie, destroy, doFilter, doFilter, getAuthenticationHandler, getAuthUrl, getConfiguration, getCookieDomain, getCookiePath, getCookieTokenName, getLogoutUrl, getMaxInactiveInterval, getRequestURL, getToken, getValidity, init, initializeAuthHandler, initializeSecretProvider, isCookiePersistent, isCustomSignerSecretProvider, isRandomSecret, verifyTokenTypeprotected java.util.Properties getConfiguration(java.lang.String configPrefix,
javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
getConfiguration in class org.apache.hadoop.security.authentication.server.AuthenticationFilterjavax.servlet.ServletExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.