|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationAware
A Spring managed bean implementing this interface will be automatically notified of any
change in the user's Authentication token. This would happen after various security
related operations like login and logout. Any bean implementing this interface will
have setAuthenticationToken(Authentication)
called when it is created and
subsequently whenever the user's authentication token changes.
In order for this notification to take place, a singleton, non-lazy instance of
SecurityAwareConfigurer
must be defined in the Spring ApplicationContext. See
SecurityAwareConfigurer
for configuration details.
If a class needs to track the actual security event lifecycle, then it should implement
ApplicationListener
and watch for instances of
ClientSecurityEvent
events.
AuthenticationManager.authenticate(org.acegisecurity.Authentication)
,
ApplicationListener
,
LoginAware
,
ClientSecurityEvent
,
SecurityAwareConfigurer
Method Summary | |
---|---|
void |
setAuthenticationToken(org.acegisecurity.Authentication authentication)
Notifies listener of the new (current) Authentication token for the user. |
Method Detail |
---|
void setAuthenticationToken(org.acegisecurity.Authentication authentication)
authentication
- token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |