|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationListener
An AuthenticationListener
listens for notifications while Subject
s authenticate with the system.
Method Summary | |
---|---|
void |
onFailure(AuthenticationToken token,
AuthenticationException ae)
Callback triggered when an authentication attempt for a Subject has failed. |
void |
onLogout(PrincipalCollection principals)
Callback triggered when a Subject logs-out of the system. |
void |
onSuccess(AuthenticationToken token,
AuthenticationInfo info)
Callback triggered when an authentication attempt for a Subject has succeeded. |
Method Detail |
---|
void onSuccess(AuthenticationToken token, AuthenticationInfo info)
Subject
has succeeded.
token
- the authentication token submitted during the Subject
(user)'s authentication attempt.info
- the authentication-related account data acquired after authentication for the corresponding Subject
.void onFailure(AuthenticationToken token, AuthenticationException ae)
Subject
has failed.
token
- the authentication token submitted during the Subject
(user)'s authentication attempt.ae
- the AuthenticationException
that occurred as a result of the attempt.void onLogout(PrincipalCollection principals)
Subject
logs-out of the system.
This method will only be triggered when a Subject explicitly logs-out of the session. It will not
be triggered if their Session times out.
principals
- the identifying principals of the Subject logging out.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |