public final class RealmSuccessfulAuthenticationEvent extends RealmAuthenticationEvent
Constructor and Description |
---|
RealmSuccessfulAuthenticationEvent(RealmIdentity realmIdentity,
AuthorizationIdentity authorizationIdentity,
Credential credential,
Evidence evidence)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
AuthorizationIdentity |
getAuthorizationIdentity()
Get the authorization identity.
|
Credential |
getCredential()
Get the actual credential used.
|
Evidence |
getEvidence()
Get the actual credential guess used.
|
boolean |
isFailure()
Determine if this authentication definitely failed.
|
boolean |
isSuccess()
Determine if this authentication was definitely successful.
|
getRealmIdentity
public RealmSuccessfulAuthenticationEvent(RealmIdentity realmIdentity, AuthorizationIdentity authorizationIdentity, Credential credential, Evidence evidence)
realmIdentity
- the realm identity that successfully authenticatedauthorizationIdentity
- the authenticated authorization identitycredential
- the actual credential value from the authentication (may be null
if not known)evidence
- the evidence used to authenticate (may be null
if not known or not applicable)public AuthorizationIdentity getAuthorizationIdentity()
public <P,R> R accept(RealmEventVisitor<P,R> visitor, P param)
RealmEvent
P
- the visitor parameter typeR
- the visitor return typevisitor
- the visitorparam
- the parameter to pass to the visitor handleXxx
methodhandleXxx
methodpublic boolean isSuccess()
RealmAuthenticationEvent
isSuccess
in class RealmAuthenticationEvent
true
if the authentication was definitely successful, false
if it was not definitely
successfulpublic Credential getCredential()
null
if it is not known or none was usedpublic Evidence getEvidence()
null
if there was no guess, it is not known, or no credential was usedpublic final boolean isFailure()
RealmAuthenticationEvent
isFailure
in class RealmAuthenticationEvent
true
if the authentication definitely failed, false
if it did not definitely
failCopyright © 2017 JBoss by Red Hat. All rights reserved.