Class RealmAuthenticationEvent
- java.lang.Object
-
- org.wildfly.security.auth.server.event.RealmEvent
-
- org.wildfly.security.auth.server.event.RealmAuthenticationEvent
-
- Direct Known Subclasses:
RealmAbandonedAuthenticationEvent
,RealmDefiniteOutcomeAuthenticationEvent
public abstract class RealmAuthenticationEvent extends RealmEvent
A realm authentication event. The realm identity may be destroyed at some point after the event is handled.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RealmAuthenticationEvent(RealmIdentity realmIdentity)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <P,R>
Raccept(RealmEventVisitor<P,R> visitor, P param)
Accept the given visitor, calling the method which is most applicable to this event type.RealmIdentity
getRealmIdentity()
Get the realm identity.abstract boolean
isFailure()
Determine if this authentication definitely failed.abstract boolean
isSuccess()
Determine if this authentication was definitely successful.
-
-
-
Constructor Detail
-
RealmAuthenticationEvent
protected RealmAuthenticationEvent(RealmIdentity realmIdentity)
Construct a new instance.- Parameters:
realmIdentity
- the realm identity of the authentication event
-
-
Method Detail
-
getRealmIdentity
public final RealmIdentity getRealmIdentity()
Get the realm identity.- Returns:
- the realm identity
-
accept
public <P,R> R accept(RealmEventVisitor<P,R> visitor, P param)
Description copied from class:RealmEvent
Accept the given visitor, calling the method which is most applicable to this event type.- Overrides:
accept
in classRealmEvent
- Type Parameters:
P
- the visitor parameter typeR
- the visitor return type- Parameters:
visitor
- the visitorparam
- the parameter to pass to the visitorhandleXxx
method- Returns:
- the value returned from the visitor
handleXxx
method
-
isSuccess
public abstract boolean isSuccess()
Determine if this authentication was definitely successful.- Returns:
true
if the authentication was definitely successful,false
if it was not definitely successful
-
isFailure
public abstract boolean isFailure()
Determine if this authentication definitely failed.- Returns:
true
if the authentication definitely failed,false
if it did not definitely fail
-
-