Package io.micronaut.security.event
Class SecurityEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.event.SecurityEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LoginFailedEvent
,LoginSuccessfulEvent
,LogoutEvent
,TokenValidatedEvent
@Internal
public abstract class SecurityEvent
extends io.micronaut.context.event.ApplicationEvent
Base class for security events.
- Since:
- 4.7.0
- Author:
- Tim Yates
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ModifierConstructorDescriptionprotected
SecurityEvent
(Object source, @Nullable String host, Locale locale) -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SecurityEvent
- Parameters:
source
- The source of the eventhost
- The hostname from the request if availablelocale
- The locale of the request
-
-
Method Details
-
getHost
- Returns:
- The hostname from the request if available
-
getLocale
- Returns:
- The locale of the request
-