public class MaprAuthenticationHandler
extends org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE
Authentication type will be embedded in the authentication token
|
| Constructor and Description |
|---|
MaprAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(javax.servlet.http.HttpServletResponse response) |
void |
destroy() |
org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandler |
getAuthBasedEntity(java.lang.String authorization) |
void |
init(java.util.Properties config)
This function is invoked when the filter is coming up.
|
org.apache.hadoop.security.authentication.server.AuthenticationToken |
maprAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This function is called once we establish the client is authenticating
using Mapr ticket and has responded with Mapr negotiate header.
|
org.apache.hadoop.security.authentication.server.AuthenticationToken |
postauthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final java.lang.String TYPE
public void init(java.util.Properties config)
throws javax.servlet.ServletException
init in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerinit in class org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandlerconfig - configuration properties to initialize the handler.javax.servlet.ServletExceptionpublic void destroy()
destroy in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerdestroy in class org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandlerpublic org.apache.hadoop.security.authentication.server.AuthenticationToken postauthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
org.apache.hadoop.security.authentication.client.AuthenticationException
postauthenticate in class org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandlerjava.io.IOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic org.apache.hadoop.security.authentication.server.AuthenticationToken maprAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
org.apache.hadoop.security.authentication.client.AuthenticationException
request - the HTTP client requestresponse - the HTTP client responsejava.io.IOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic void addHeader(javax.servlet.http.HttpServletResponse response)
addHeader in class org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandlerpublic org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandler getAuthBasedEntity(java.lang.String authorization)
getAuthBasedEntity in class org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandler