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
-
-
Field Summary
Fields Modifier and Type Field Description private AuthorizationIdentity
authorizationIdentity
-
Constructor Summary
Constructors Constructor Description RealmSuccessfulAuthenticationEvent(RealmIdentity realmIdentity, AuthorizationIdentity authorizationIdentity, Credential credential, Evidence evidence)
Construct a new instance.
-
Method Summary
All Methods Instance 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.AuthorizationIdentity
getAuthorizationIdentity()
Get the authorization identity.boolean
isSuccess()
Determine if this authentication was definitely successful.-
Methods inherited from class org.wildfly.security.auth.server.event.RealmDefiniteOutcomeAuthenticationEvent
getCredential, getEvidence, isFailure
-
Methods inherited from class org.wildfly.security.auth.server.event.RealmAuthenticationEvent
getRealmIdentity
-
-
-
-
Field Detail
-
authorizationIdentity
private final AuthorizationIdentity authorizationIdentity
-
-
Constructor Detail
-
RealmSuccessfulAuthenticationEvent
public RealmSuccessfulAuthenticationEvent(RealmIdentity realmIdentity, AuthorizationIdentity authorizationIdentity, Credential credential, 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 benull
if not known)evidence
- the evidence used to authenticate (may benull
if not known or not applicable)
-
-
Method Detail
-
getAuthorizationIdentity
public AuthorizationIdentity getAuthorizationIdentity()
Get the authorization identity.- Returns:
- the authorization 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 classRealmDefiniteOutcomeAuthenticationEvent
- 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 boolean isSuccess()
Description copied from class:RealmAuthenticationEvent
Determine if this authentication was definitely successful.- Specified by:
isSuccess
in classRealmAuthenticationEvent
- Returns:
true
if the authentication was definitely successful,false
if it was not definitely successful
-
-