Class TokenValidatedEvent

java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.event.SecurityEvent
io.micronaut.security.event.TokenValidatedEvent
All Implemented Interfaces:
Serializable

public class TokenValidatedEvent extends SecurityEvent
Triggered when a token is validated.
Since:
1.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • TokenValidatedEvent

      public TokenValidatedEvent(Object source, @Nullable @Nullable String host, Locale locale)
      Triggered when a token is validated.
      Parameters:
      source - A String containing the token being validated.
      host - The hostname from the request if available
      locale - The locale of the request
      Throws:
      IllegalArgumentException - if source is null.
      Since:
      4.7.0
    • TokenValidatedEvent

      @Deprecated(forRemoval=true, since="4.7.0") public TokenValidatedEvent(Object source)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Triggered when a token is validated.
      Parameters:
      source - A String containing the token being validated.
      Throws:
      IllegalArgumentException - if source is null.