public class SecurityFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
ALREADY_PROCESSED |
protected Authenticator |
authenticator |
protected javax.servlet.FilterConfig |
config |
static String |
CONFIG_FILE_KEY |
static String |
DEFAULT_CONFIG_FILE |
protected URLPatternFactory |
patternFactory |
protected List |
patternList |
protected SecurityRealmInterface |
realm |
static String |
SAVED_REQUEST |
static String |
SAVED_REQUEST_URL |
static String |
TRUE |
static String |
VALIDATE_KEY |
| Constructor and Description |
|---|
SecurityFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the filter, releasing resources.
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Perform filtering operation, and optionally pass the request down the chain.
|
static String |
getContinueToURL(javax.servlet.http.HttpServletRequest request)
Get the URL to continue to after successful login.
|
javax.servlet.FilterConfig |
getFilterConfig()
Get the filter config object, included for WebLogic 6 compatibility.
|
protected SavedRequest |
getSavedRequest(javax.servlet.http.HttpServletRequest request)
If this request matches the one we saved, return the SavedRequest and remove it from the session.
|
void |
init(javax.servlet.FilterConfig config)
Initialize the SecurityFilter.
|
protected URLPattern |
matchPattern(String pattern,
String httpMethod,
URLPatternMatcher matcher)
Find a match for the requested pattern & method, if any.
|
static void |
saveRequestInformation(javax.servlet.http.HttpServletRequest request)
Save request information to re-use when the user is successfully authenticated.
|
void |
setFilterConfig(javax.servlet.FilterConfig config)
Set the filter configuration, included for WebLogic 6 compatibility.
|
public static final String CONFIG_FILE_KEY
public static final String DEFAULT_CONFIG_FILE
public static final String VALIDATE_KEY
public static final String TRUE
public static final String ALREADY_PROCESSED
public static final String SAVED_REQUEST_URL
public static final String SAVED_REQUEST
protected javax.servlet.FilterConfig config
protected SecurityRealmInterface realm
protected List patternList
protected URLPatternFactory patternFactory
protected Authenticator authenticator
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterrequest - the current requestresponse - the current responsechain - request handler chainIOExceptionjavax.servlet.ServletExceptionpublic void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterconfig - filter configuration objectjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterprotected URLPattern matchPattern(String pattern, String httpMethod, URLPatternMatcher matcher) throws Exception
pattern - the pattern to matchhttpMethod - the HTTP Method to matchmatcher - the thread-local URLPatternMatcher objectExceptionprotected SavedRequest getSavedRequest(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic static String getContinueToURL(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic static void saveRequestInformation(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic void setFilterConfig(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
config - filter configuration objectjavax.servlet.ServletExceptionpublic javax.servlet.FilterConfig getFilterConfig()
Copyright © 2020 B3Partners B.V.. All rights reserved.