|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.ui.rememberme.RememberMeProcessingFilter
public class RememberMeProcessingFilter
Detects if there is no Authentication object in the SecurityContext, and populates it
with a remember-me authentication token if a RememberMeServices
implementation so requests.
Concrete RememberMeServices implementations will have their RememberMeServices.autoLogin(HttpServletRequest, HttpServletResponse) method
called by this filter. The Authentication or null returned by that method will be placed
into the SecurityContext. The AuthenticationManager will be used, so that any concurrent
session management or other authentication-specific behaviour can be achieved. This is the same pattern as with
other authentication mechanisms, which call the AuthenticationManager as part of their contract.
If authentication is successful, an InteractiveAuthenticationSuccessEvent will be published to the application
context. No events will be published if authentication was unsuccessful, because this would generally be recorded
via an AuthenticationManager-specific application event.
Do not use this class directly. Instead configure web.xml to use the FilterToBeanProxy.
| Constructor Summary | |
|---|---|
RememberMeProcessingFilter()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
Does nothing - we rely on IoC lifecycle services instead. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
RememberMeServices |
getRememberMeServices()
|
void |
init(FilterConfig ignored)
Does nothing - we rely on IoC lifecycle services instead. |
void |
setApplicationEventPublisher(ApplicationEventPublisher eventPublisher)
|
void |
setAuthenticationManager(AuthenticationManager authenticationManager)
|
void |
setRememberMeServices(RememberMeServices rememberMeServices)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RememberMeProcessingFilter()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void destroy()
destroy in interface Filter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
doFilter in interface FilterIOException
ServletExceptionpublic RememberMeServices getRememberMeServices()
public void init(FilterConfig ignored)
throws ServletException
init in interface Filterignored - not used
ServletException - DOCUMENT ME!public void setApplicationEventPublisher(ApplicationEventPublisher eventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwarepublic void setAuthenticationManager(AuthenticationManager authenticationManager)
public void setRememberMeServices(RememberMeServices rememberMeServices)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||