AuthenticationListener

An {@code AuthenticationListener} listens for notifications while {@code Subject}s authenticate with the system.

Members

Functions

onFailure
void onFailure(AuthenticationToken token, AuthenticationException ae)

Callback triggered when an authentication attempt for a {@code Subject} has failed.

onLogout
void onLogout(PrincipalCollection principals)

Callback triggered when a {@code Subject} logs-out of the system. <p/> 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.

onSuccess
void onSuccess(AuthenticationToken token, AuthenticationInfo info)

Callback triggered when an authentication attempt for a {@code Subject} has succeeded.

Meta