public final class RealmFailedAuthenticationEvent extends RealmAuthenticationEvent
Constructor and Description |
---|
RealmFailedAuthenticationEvent(RealmIdentity realmIdentity,
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.
|
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 RealmFailedAuthenticationEvent(RealmIdentity realmIdentity, Credential credential, Evidence evidence)
realmIdentity
- the realm identity of the failed authenticationcredential
- 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 <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.