public class DelegationTokenMultiSchemeAuthHandler
extends org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationHandler
AuthenticationHandler that supports multiple HTTP authentication schemes
along with Delegation Token functionality.
In addition to the wrapped AuthenticationHandler configuration
properties, this handler supports the following properties prefixed
with the type of the wrapped AuthenticationHandler:
| Modifier and Type | Field and Description |
|---|---|
static String |
DELEGATION_TOKEN_SCHEMES_PROPERTY |
| Constructor and Description |
|---|
DelegationTokenMultiSchemeAuthHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.security.authentication.server.AuthenticationToken |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is overridden to restrict HTTP authentication schemes available for
delegation token management functionality.
|
static String |
getParameter(javax.servlet.http.HttpServletRequest request,
String name)
Extract a query string parameter without triggering http parameters
processing by the servlet container.
|
void |
init(Properties config) |
static String |
toUpperCase(String str)
Converts all of the characters in this String to upper case with
Locale.ENGLISH.
|
public static final String DELEGATION_TOKEN_SCHEMES_PROPERTY
public DelegationTokenMultiSchemeAuthHandler()
public void init(Properties config) throws javax.servlet.ServletException
init in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerinit in class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationHandlerjavax.servlet.ServletExceptionpublic org.apache.hadoop.security.authentication.server.AuthenticationToken authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
org.apache.hadoop.security.authentication.client.AuthenticationException
MultiSchemeAuthenticationHandler
for actual authentication.
Finally all other requests (excluding delegation token management) are forwarded to underlying
MultiSchemeAuthenticationHandler for actual authentication.authenticate in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerauthenticate in class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationHandlerIOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic static String getParameter(javax.servlet.http.HttpServletRequest request, String name) throws IOException
request - the requestname - the parameter to get the value.NULL if the parameter is not
defined.IOException - thrown if there was an error parsing the query string.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.