public class AuthenticationServletFilter extends InjectedFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
WWW_AUTHENTICATE_HEADER |
injector| Constructor and Description |
|---|
AuthenticationServletFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
protected String |
getRealm(javax.servlet.http.HttpServletRequest request)
Override this to return container server specific realm.
|
protected void |
onError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
AuthenticationHandler.InvalidAuthenticationException iae)
Override this to perform extra error processing.
|
protected void |
onRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
AuthenticationHandler.InvalidAuthenticationException iae)
Override this to perform extra processing on redirect.
|
void |
setAuthenticationHandlers(List<AuthenticationHandler> handlers) |
void |
setAuthenticationRealm(String realm) |
initpublic static final String WWW_AUTHENTICATE_HEADER
@Inject(optional=true) public void setAuthenticationRealm(String realm)
@Inject public void setAuthenticationHandlers(List<AuthenticationHandler> handlers)
public void destroy()
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected String getRealm(javax.servlet.http.HttpServletRequest request)
protected void onError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
AuthenticationHandler.InvalidAuthenticationException iae)
throws IOException
req - the current http request for this filterresp - the current http response for this filteriae - the exception that caused the error pathIOExceptionprotected void onRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
AuthenticationHandler.InvalidAuthenticationException iae)
throws IOException
req - the current http request for this filterresp - the current http response for this filteriae - the exception that caused the redirect pathIOExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.