public class KerberosPlugin extends AuthenticationPlugin implements HttpClientInterceptorPlugin
| Modifier and Type | Class and Description |
|---|---|
protected static class |
KerberosPlugin.AttributeOnlyServletContext |
static class |
KerberosPlugin.RequestContinuesRecorderAuthenticationHandler |
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_HANDLER_PARAM |
static String |
COOKIE_DOMAIN_PARAM |
static String |
COOKIE_PATH_PARAM |
static String |
COOKIE_PORT_AWARE_PARAM |
static String |
DELEGATION_TOKEN_ENABLED |
static String |
DELEGATION_TOKEN_KIND |
static String |
DELEGATION_TOKEN_SECRET_MANAGER_ZNODE_WORKING_PATH |
static String |
DELEGATION_TOKEN_SECRET_PROVIDER |
static String |
DELEGATION_TOKEN_SECRET_PROVIDER_ZK_PATH |
static String |
DELEGATION_TOKEN_TYPE_DEFAULT |
static String |
DELEGATION_TOKEN_VALIDITY |
static String |
KEYTAB_PARAM |
static String |
NAME_RULES_PARAM |
static String |
PRINCIPAL_PARAM |
static String |
TOKEN_VALID_PARAM |
AUTHENTICATION_PLUGIN_PROP| Constructor and Description |
|---|
KerberosPlugin(CoreContainer coreContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
doAuthenticate(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse rsp,
javax.servlet.FilterChain chain)
This method attempts to authenticate the request.
|
HttpClientConfigurer |
getClientConfigurer() |
void |
init(Map<String,Object> pluginConfig)
This is called upon loading up of a plugin, used for setting it up.
|
closeRequestpublic static final String NAME_RULES_PARAM
public static final String COOKIE_DOMAIN_PARAM
public static final String COOKIE_PATH_PARAM
public static final String PRINCIPAL_PARAM
public static final String KEYTAB_PARAM
public static final String TOKEN_VALID_PARAM
public static final String COOKIE_PORT_AWARE_PARAM
public static final String DELEGATION_TOKEN_ENABLED
public static final String DELEGATION_TOKEN_KIND
public static final String DELEGATION_TOKEN_VALIDITY
public static final String DELEGATION_TOKEN_SECRET_PROVIDER
public static final String DELEGATION_TOKEN_SECRET_PROVIDER_ZK_PATH
public static final String DELEGATION_TOKEN_SECRET_MANAGER_ZNODE_WORKING_PATH
public static final String DELEGATION_TOKEN_TYPE_DEFAULT
public static final String AUTH_HANDLER_PARAM
public KerberosPlugin(CoreContainer coreContainer)
public void init(Map<String,Object> pluginConfig)
AuthenticationPlugininit in class AuthenticationPluginpluginConfig - Config parameters, possibly from a ZK sourcepublic boolean doAuthenticate(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse rsp,
javax.servlet.FilterChain chain)
throws Exception
AuthenticationPlugindoAuthenticate in class AuthenticationPluginreq - the http requestrsp - the http responsechain - the servlet filter chainException - any exception thrown during the authentication, e.g. PrivilegedActionExceptionpublic HttpClientConfigurer getClientConfigurer()
getClientConfigurer in interface HttpClientInterceptorPluginpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.