public class KerberosPlugin extends AuthenticationPlugin implements HttpClientInterceptorPlugin
Modifier and Type | Field and Description |
---|---|
static String |
COOKIE_DOMAIN_PARAM |
static String |
COOKIE_PATH_PARAM |
static String |
COOKIE_PORT_AWARE_PARAM |
static String |
KEYTAB_PARAM |
static String |
NAME_RULES_PARAM |
protected static javax.servlet.ServletContext |
noContext |
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() |
void |
doAuthenticate(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse rsp,
javax.servlet.FilterChain chain)
This method must 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.
|
closeRequest, forward
public 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
protected static javax.servlet.ServletContext noContext
public KerberosPlugin(CoreContainer coreContainer)
public void init(Map<String,Object> pluginConfig)
AuthenticationPlugin
init
in class AuthenticationPlugin
pluginConfig
- Config parameters, possibly from a ZK sourcepublic void doAuthenticate(javax.servlet.ServletRequest req, javax.servlet.ServletResponse rsp, javax.servlet.FilterChain chain) throws Exception
AuthenticationPlugin
doAuthenticate
in class AuthenticationPlugin
req
- the http requestrsp
- the http responsechain
- the servlet filter chainException
- any exception thrown during the authentication, e.g. PrivilegedActionExceptionpublic HttpClientConfigurer getClientConfigurer()
getClientConfigurer
in interface HttpClientInterceptorPlugin
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.