public interface AuthenticationListener
AuthenticationListener listens for notifications while Subjects authenticate with the system.| Modifier and Type | Method and Description |
|---|---|
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. |
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.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.