public class AuthenticationFilter extends HttpFilter
SimpleLoginModule
to authenticate a request.Modifier and Type | Field and Description |
---|---|
protected boolean |
autoPrompt |
static String |
DEFAULT_SECURITY_DOMAIN |
protected String |
domain |
protected String |
realmName |
Constructor and Description |
---|
AuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected LoginContext |
doLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
handleLoginFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
LoginException e) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected String[] |
retrieveBasicLogin(javax.servlet.http.HttpServletRequest httpRequest) |
void |
run(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
protected javax.servlet.http.HttpServletRequest |
wrapRequest(javax.servlet.http.HttpServletRequest request,
LoginContext lc) |
doFilter, getBoolean
public static final String DEFAULT_SECURITY_DOMAIN
protected boolean autoPrompt
public AuthenticationFilter()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
javax.servlet.ServletException
public void run(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
run
in class HttpFilter
IOException
javax.servlet.ServletException
public void destroy()
protected String[] retrieveBasicLogin(javax.servlet.http.HttpServletRequest httpRequest)
protected LoginContext doLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws LoginException
LoginException
protected void handleLoginFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, LoginException e)
protected javax.servlet.http.HttpServletRequest wrapRequest(javax.servlet.http.HttpServletRequest request, LoginContext lc)
Copyright © 2015 Nuxeo SA. All rights reserved.