Class RealmSuccessfulAuthenticationEvent
java.lang.Object
org.wildfly.security.auth.server.event.RealmEvent
org.wildfly.security.auth.server.event.RealmAuthenticationEvent
org.wildfly.security.auth.server.event.RealmDefiniteOutcomeAuthenticationEvent
org.wildfly.security.auth.server.event.RealmSuccessfulAuthenticationEvent
public final class RealmSuccessfulAuthenticationEvent
extends RealmDefiniteOutcomeAuthenticationEvent
A realm event signifying authentication success.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionRealmSuccessfulAuthenticationEvent(RealmIdentity realmIdentity, AuthorizationIdentity authorizationIdentity, org.wildfly.security.credential.Credential credential, org.wildfly.security.evidence.Evidence evidence) 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.Get the authorization identity.booleanDetermine if this authentication was definitely successful.Methods inherited from class RealmDefiniteOutcomeAuthenticationEvent
getCredential, getEvidence, isFailureMethods inherited from class RealmAuthenticationEvent
getRealmIdentity
-
Constructor Details
-
RealmSuccessfulAuthenticationEvent
public RealmSuccessfulAuthenticationEvent(RealmIdentity realmIdentity, AuthorizationIdentity authorizationIdentity, org.wildfly.security.credential.Credential credential, org.wildfly.security.evidence.Evidence evidence) Construct a new instance.- Parameters:
realmIdentity- the realm identity that successfully authenticatedauthorizationIdentity- the authenticated authorization identitycredential- the actual credential value from the authentication (may benullif not known)evidence- the evidence used to authenticate (may benullif not known or not applicable)
-
-
Method Details
-
getAuthorizationIdentity
Get the authorization identity.- Returns:
- the authorization identity
-
accept
Description copied from class:RealmEventAccept the given visitor, calling the method which is most applicable to this event type.- Overrides:
acceptin classRealmDefiniteOutcomeAuthenticationEvent- 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 boolean isSuccess()Description copied from class:RealmAuthenticationEventDetermine if this authentication was definitely successful.- Specified by:
isSuccessin classRealmAuthenticationEvent- Returns:
trueif the authentication was definitely successful,falseif it was not definitely successful
-