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