Class RealmDefiniteOutcomeAuthenticationEvent
- java.lang.Object
-
- org.wildfly.security.auth.server.event.RealmEvent
-
- org.wildfly.security.auth.server.event.RealmAuthenticationEvent
-
- org.wildfly.security.auth.server.event.RealmDefiniteOutcomeAuthenticationEvent
-
- Direct Known Subclasses:
RealmFailedAuthenticationEvent
,RealmSuccessfulAuthenticationEvent
public abstract class RealmDefiniteOutcomeAuthenticationEvent extends RealmAuthenticationEvent
An authentication event with a definite outcome.- Author:
- David M. Lloyd
-
-
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.Credential
getCredential()
Get the actual credential used.Evidence
getEvidence()
Get the actual credential guess used.boolean
isFailure()
Determine if this authentication definitely failed.-
Methods inherited from class org.wildfly.security.auth.server.event.RealmAuthenticationEvent
getRealmIdentity, isSuccess
-
-
-
-
Method Detail
-
getCredential
public Credential getCredential()
Get the actual credential used.- Returns:
- the actual credential used, or
null
if it is not known or none was used
-
getEvidence
public Evidence getEvidence()
Get the actual credential guess used.- Returns:
- the actual credential guess used, or
null
if there was no guess, it is not known, or no credential was used
-
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 classRealmAuthenticationEvent
- 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
-
isFailure
public final boolean isFailure()
Description copied from class:RealmAuthenticationEvent
Determine if this authentication definitely failed.- Specified by:
isFailure
in classRealmAuthenticationEvent
- Returns:
true
if the authentication definitely failed,false
if it did not definitely fail
-
-