|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 java.lang.String |
LAST_VALIDATED
The session key stored as a Date, is the last time the principal had a successful token validation. |
static java.lang.String |
ORIGINAL_URL
The session key stored as a String |
| Constructor Summary | |
|---|---|
VerifyTokenFilter()
Use this default constructor if you are not using an IoC managed HttpAuthenticator/SecurityServerClient. |
|
VerifyTokenFilter(HttpAuthenticator httpAuthenticator)
Use this constructor to provide an externally managed singleton instance of the HttpAuthenticator. |
|
| Method Summary | |
|---|---|
void |
destroy()
Shuts down the filter. |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
Executes the filter. |
void |
init(javax.servlet.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 java.lang.String ORIGINAL_URL
String, is the requested secure url before redirect to the authentication
page.
public static final java.lang.String LAST_VALIDATED
Date, is the last time the principal had a successful token validation.
| Constructor Detail |
|---|
public VerifyTokenFilter()
public VerifyTokenFilter(HttpAuthenticator httpAuthenticator)
httpAuthenticator - externally managed singleton.| Method Detail |
|---|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - the FilterConfig to use.
javax.servlet.ServletException - Filter related problems.public void destroy()
destroy in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterservletRequest - the ServletRequest to use.servletResponse - the ServletResponse to use.filterChain - the FilterChain to use.
java.io.IOException - I/O related problems.
javax.servlet.ServletException - Servlet related problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||