public class MultiSchemeAuthenticationHandler extends Object implements org.apache.hadoop.security.authentication.server.AuthenticationHandler
MultiSchemeAuthenticationHandler supports configuring multiple
authentication mechanisms simultaneously.
The supported configuration properties are:
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_HANDLER_PROPERTY |
static String |
SCHEMES_PROPERTY |
static Collection<String> |
SUPPORTED_HTTP_AUTH_SCHEMES |
static String |
TYPE
Constant that identifies the authentication mechanism.
|
| Constructor and Description |
|---|
MultiSchemeAuthenticationHandler() |
MultiSchemeAuthenticationHandler(String authType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.security.authentication.server.AuthenticationToken |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
destroy() |
protected String |
getAuthenticationHandlerClassName(String authHandlerName)
This method provides an instance of
AuthenticationHandler based on
specified authHandlerName. |
String |
getType() |
static Collection<String> |
getTypes() |
void |
init(Properties config) |
protected org.apache.hadoop.security.authentication.server.AuthenticationHandler |
initializeAuthHandler(String authHandlerClassName,
Properties config) |
boolean |
managementOperation(org.apache.hadoop.security.authentication.server.AuthenticationToken token,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String SCHEMES_PROPERTY
public static final String AUTH_HANDLER_PROPERTY
public static final Collection<String> SUPPORTED_HTTP_AUTH_SCHEMES
public static final String TYPE
public MultiSchemeAuthenticationHandler()
public MultiSchemeAuthenticationHandler(String authType)
public String getType()
getType in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerpublic static Collection<String> getTypes()
public void init(Properties config) throws javax.servlet.ServletException
init in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerjavax.servlet.ServletExceptionprotected String getAuthenticationHandlerClassName(String authHandlerName)
AuthenticationHandler based on
specified authHandlerName.authHandlerName - The short-name (or fully qualified class name) of
the authentication handler.protected org.apache.hadoop.security.authentication.server.AuthenticationHandler initializeAuthHandler(String authHandlerClassName, Properties config) throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerpublic boolean managementOperation(org.apache.hadoop.security.authentication.server.AuthenticationToken token,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
org.apache.hadoop.security.authentication.client.AuthenticationException
managementOperation in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerIOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic 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
authenticate in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerIOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.