public final class SecurityAuthenticationFailedEvent extends SecurityAuthenticationEvent
Constructor and Description |
---|
SecurityAuthenticationFailedEvent(SecurityIdentity securityIdentity,
Principal principal)
Constructor for a new instance.
|
Modifier and Type | Method and Description |
---|---|
<P,R> R |
accept(SecurityEventVisitor<P,R> visitor,
P param)
Accept the given visitor, calling the method which is most applicable to this event type.
|
Principal |
getPrincipal()
Gets the principal used to the failed authentication.
|
isSuccessful
getInstant, getSecurityIdentity
public SecurityAuthenticationFailedEvent(SecurityIdentity securityIdentity, Principal principal)
securityIdentity
- the SecurityIdentity
that failed authentication (null
when identity does not exists)principal
- the principal used to that failed authentication (filled event if identity does not exists)public Principal getPrincipal()
public <P,R> R accept(SecurityEventVisitor<P,R> visitor, P param)
SecurityEvent
accept
in class SecurityAuthenticationEvent
P
- the visitor parameter typeR
- the visitor return typevisitor
- the visitorparam
- the parameter to pass to the visitor handleXxx
methodhandleXxx
methodCopyright © 2021 JBoss by Red Hat. All rights reserved.