|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.crowd.integration.service.soap.client.GenericClient
com.atlassian.crowd.integration.http.VerifyTokenFilter
public class VerifyTokenFilter
This filter manages protecting a web.xml
url-pattern
. If the requesting principal does
not have a valid token, they will be redirected to the authentication path specified in the crowd.properties
configuration file. Additional values are stored to the principal's session such as their originally requested
URL should their authentication be found invalid.
Field Summary | |
---|---|
static String |
LAST_VALIDATED
The session key stored as a Date , is the last time the principal had a successful token validation. |
static String |
ORIGINAL_URL
The session key stored as a String |
Fields inherited from class com.atlassian.crowd.integration.service.soap.client.GenericClient |
---|
applciationAuthenticationContext, applicationAuthenticationURL, applicationName, applicationPassword, applicationToken, securityServerURL, sessionIsAuthenticated, sessionLastValidation, sessionTokenKey, sessionValidationInterval, UNABLE_TO_CONNECT |
Constructor Summary | |
---|---|
VerifyTokenFilter()
|
Method Summary | |
---|---|
void |
destroy()
Shuts down the filter. |
void |
doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain filterChain)
Executes the filter. |
void |
init(FilterConfig filterConfig)
Configures the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ORIGINAL_URL
String, is the requested secure url before redirect to the authentication
page.
public static final String LAST_VALIDATED
Date
, is the last time the principal had a successful token validation.
Constructor Detail |
---|
public VerifyTokenFilter()
Method Detail |
---|
public void init(FilterConfig filterConfig) throws ServletException
filterConfig
- the FilterConfig
to use.
javax.servlet.ServletException
- Filter
related problems.
ServletException
public void destroy()
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException
servletRequest
- the ServletRequest
to use.servletResponse
- the ServletResponse
to use.filterChain
- the FilterChain
to use.
IOException
- I/O related problems.
ServletException
- Servlet
related problems.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |