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 void |
doAuthenticate(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
This method must authenticate the request.
|
protected void |
forward(String user,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse rsp,
javax.servlet.FilterChain chain) |
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 sourceprotected void forward(String user, javax.servlet.ServletRequest req, javax.servlet.ServletResponse rsp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public abstract void 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-2016 Apache Software Foundation. All Rights Reserved.