public class AccessControlFilter extends FilterFacade
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defaultClassification |
filterConfig, forwardAddress, logger, USER_CLEARANCE_ATTRIBUTE, USER_CREDENTIALS_ATTRIBUTE, USER_DN_ATTRIBUTE, USER_NAME_ATTRIBUTE
Constructor and Description |
---|
AccessControlFilter() |
Modifier and Type | Method and Description |
---|---|
void |
init(javax.servlet.FilterConfig filterConfig)
Run once on server start-up to initialize the Filter.
|
protected boolean |
setupUserCredentials(javax.servlet.http.HttpSession session)
Sets up the user credentials object on the session.
|
protected boolean |
setupUserName(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
Sets up the users session attributes and gets the user name
|
destroy, doFilter, unauthorizedRequest
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
FilterFacade
init
in interface javax.servlet.Filter
init
in class FilterFacade
filterConfig
- configuration defined in the web.xml filejavax.servlet.ServletException
protected boolean setupUserCredentials(javax.servlet.http.HttpSession session)
setupUserCredentials
in class FilterFacade
session
- the http sessionprotected boolean setupUserName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)
setupUserName
in class FilterFacade
request
- the http requestsession
- the http session