|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.authentication.AuthenticationEventSender
public abstract class AuthenticationEventSender
This is an abstract class to encapsulate the notion of an authentication event sender. The basic capability is to send events about the the progress of the respective authentication, i.e. AuthenticationSuccess, AuthenticationFailure and AuthenticationProgress events.
| Field Summary | |
|---|---|
protected java.util.LinkedList |
eventsHandlers
The list of listeners that are notified of authentication events. |
| Constructor Summary | |
|---|---|
AuthenticationEventSender()
|
|
| Method Summary | |
|---|---|
void |
addAuthenticationProgressHandler(AuthenticationProgressHandler h)
Register a listener for receiving events. |
protected void |
raiseAuthenticationFailureEvent(java.lang.Object remote,
java.lang.Exception e,
java.lang.String msg)
Helper method for sending an AuthenticationFailure event to all registered listeners (if any). |
protected void |
raiseAuthenticationProgressEvent(java.lang.Object remote,
int cur,
int max,
java.lang.String msg)
Helper method for sending an AuthenticationProgress event to all registered listeners (if any). |
protected void |
raiseAuthenticationSuccessEvent(java.lang.Object remote,
java.lang.Object result)
Helper method for sending an AuthenticationSuccess event to all registered listeners (if any). |
boolean |
removeAuthenticationProgressHandler(AuthenticationProgressHandler h)
De-register a listener for receiving events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.LinkedList eventsHandlers
| Constructor Detail |
|---|
public AuthenticationEventSender()
| Method Detail |
|---|
public void addAuthenticationProgressHandler(AuthenticationProgressHandler h)
public boolean removeAuthenticationProgressHandler(AuthenticationProgressHandler h)
protected void raiseAuthenticationSuccessEvent(java.lang.Object remote,
java.lang.Object result)
protected void raiseAuthenticationFailureEvent(java.lang.Object remote,
java.lang.Exception e,
java.lang.String msg)
protected void raiseAuthenticationProgressEvent(java.lang.Object remote,
int cur,
int max,
java.lang.String msg)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||