Class SecurityEvent

java.lang.Object
org.wildfly.security.auth.server.event.SecurityEvent
Direct Known Subclasses:
SecurityDefiniteOutcomeEvent, SecurityRealmUnavailableEvent, SyslogAuditEvent

public abstract class SecurityEvent extends Object
Base class for security events emitted from a SecurityDomain.
Author:
Darran Lofthouse
  • Method Details

    • getSecurityIdentity

      public SecurityIdentity getSecurityIdentity()
      Get the SecurityIdentity that was active at the time this event was triggered.
      Returns:
      the SecurityIdentity that was active at the time this event was triggered.
    • getInstant

      public Instant getInstant()
      Obtain the Instant this event was created.
      Returns:
      the Instant this event was created.
    • accept

      public <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.
      Type Parameters:
      P - the visitor parameter type
      R - the visitor return type
      Parameters:
      visitor - the visitor
      param - the parameter to pass to the visitor handleXxx method
      Returns:
      the value returned from the visitor handleXxx method