Class SecurityAuthenticationFailedEvent
- java.lang.Object
-
- org.wildfly.security.auth.server.event.SecurityEvent
-
- org.wildfly.security.auth.server.event.SecurityDefiniteOutcomeEvent
-
- org.wildfly.security.auth.server.event.SecurityAuthenticationEvent
-
- org.wildfly.security.auth.server.event.SecurityAuthenticationFailedEvent
-
public final class SecurityAuthenticationFailedEvent extends SecurityAuthenticationEvent
An event to represent a failed authentication.- Author:
- Darran Lofthouse
-
-
Constructor Summary
Constructors Constructor Description SecurityAuthenticationFailedEvent(SecurityIdentity securityIdentity, Principal principal)
Constructor for a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
Raccept(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.-
Methods inherited from class org.wildfly.security.auth.server.event.SecurityDefiniteOutcomeEvent
isSuccessful
-
Methods inherited from class org.wildfly.security.auth.server.event.SecurityEvent
getInstant, getSecurityIdentity
-
-
-
-
Constructor Detail
-
SecurityAuthenticationFailedEvent
public SecurityAuthenticationFailedEvent(SecurityIdentity securityIdentity, Principal principal)
Constructor for a new instance.- Parameters:
securityIdentity
- theSecurityIdentity
that failed authentication (null
when identity does not exists)principal
- the principal used to that failed authentication (filled event if identity does not exists)
-
-
Method Detail
-
getPrincipal
public Principal getPrincipal()
Gets the principal used to the failed authentication.- Returns:
- the principal used to that failed authentication (filled event if identity does not exists)
-
accept
public <P,R> R accept(SecurityEventVisitor<P,R> visitor, P param)
Description copied from class:SecurityEvent
Accept the given visitor, calling the method which is most applicable to this event type.- Overrides:
accept
in classSecurityAuthenticationEvent
- 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
-
-