|
|||||||||
| 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.Vector |
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 boolean |
raiseAuthenticationStartedEvent(java.lang.Object remote)
Helper method for sending an AuthenticationStarted 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. |
boolean |
setAuthenticationProgressHandlers(java.util.Vector handlers)
Set the list of registered handlers, if none has been registered so far. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector eventsHandlers
| Constructor Detail |
|---|
public AuthenticationEventSender()
| Method Detail |
|---|
public void addAuthenticationProgressHandler(AuthenticationProgressHandler h)
public boolean removeAuthenticationProgressHandler(AuthenticationProgressHandler h)
public boolean setAuthenticationProgressHandlers(java.util.Vector handlers)
handlers - The list of events handlers to use. Elements of the
vector must be of type AuthenticationProgressHandler.
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)
protected boolean raiseAuthenticationStartedEvent(java.lang.Object remote)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||