|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.securityfilter.filter.SecurityFilter
SecurityFilter provides authentication and authorization services.
| Field Summary | |
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_FILTER
|
static String |
SAVED_REQUEST
|
static String |
SAVED_REQUEST_URL
|
static String |
TRUE
|
static String |
VALIDATE_KEY
|
| Constructor Summary | |
SecurityFilter()
|
|
| Method Summary | |
static void |
authenticate(javax.servlet.http.HttpServletRequest request,
String userId,
String password)
|
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. |
static SecurityFilter |
getFilter()
|
javax.servlet.FilterConfig |
getFilterConfig()
Get the filter config object, included for WebLogic 6 compatibility. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
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_FILTER
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
| Constructor Detail |
public SecurityFilter()
| Method Detail |
public static void authenticate(javax.servlet.http.HttpServletRequest request,
String userId,
String password)
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 chain
IOException
javax.servlet.ServletExceptionpublic static SecurityFilter getFilter()
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterconfig - filter configuration object
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
protected URLPattern matchPattern(String pattern,
String httpMethod,
URLPatternMatcher matcher)
throws Exception
pattern - the pattern to matchhttpMethod - the HTTP Method to matchmatcher - the thread-local URLPatternMatcher object
Exceptionpublic static String getContinueToURL(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic static void saveRequestInformation(javax.servlet.http.HttpServletRequest request)
request - the current request
public void setFilterConfig(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
config - filter configuration object
javax.servlet.ServletExceptionpublic javax.servlet.FilterConfig getFilterConfig()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||