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
An event to represent a failed authentication.
- Author:
- Darran Lofthouse
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityAuthenticationFailedEvent(SecurityIdentity securityIdentity, Principal principal) Constructor for a new instance. -
Method Summary
Modifier and TypeMethodDescription<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.Gets the principal used to the failed authentication.Methods inherited from class SecurityDefiniteOutcomeEvent
isSuccessfulMethods inherited from class SecurityEvent
getInstant, getSecurityIdentity
-
Constructor Details
-
SecurityAuthenticationFailedEvent
Constructor for a new instance.- Parameters:
securityIdentity- theSecurityIdentitythat failed authentication (nullwhen identity does not exists)principal- the principal used to that failed authentication (filled event if identity does not exists)
-
-
Method Details
-
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
Description copied from class:SecurityEventAccept the given visitor, calling the method which is most applicable to this event type.- Overrides:
acceptin classSecurityAuthenticationEvent- Type Parameters:
P- the visitor parameter typeR- the visitor return type- Parameters:
visitor- the visitorparam- the parameter to pass to the visitorhandleXxxmethod- Returns:
- the value returned from the visitor
handleXxxmethod
-