public abstract class AuthenticationPlugin extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
AUTHENTICATION_PLUGIN_PROP |
Constructor and Description |
---|
AuthenticationPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
closeRequest()
Cleanup any per request data
|
abstract boolean |
doAuthenticate(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
This method attempts to authenticate the request.
|
abstract void |
init(Map<String,Object> pluginConfig)
This is called upon loading up of a plugin, used for setting it up.
|
public static final String AUTHENTICATION_PLUGIN_PROP
public abstract void init(Map<String,Object> pluginConfig)
pluginConfig
- Config parameters, possibly from a ZK sourcepublic abstract boolean doAuthenticate(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws Exception
request
- the http requestresponse
- the http responsefilterChain
- the servlet filter chainException
- any exception thrown during the authentication, e.g. PrivilegedActionExceptionpublic void closeRequest()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.