Class SecurityEventVisitor<P,R>

java.lang.Object
org.wildfly.security.auth.server.event.SecurityEventVisitor<P,R>
Direct Known Subclasses:
JsonSecurityEventFormatter, SimpleSecurityEventFormatter

public abstract class SecurityEventVisitor<P,R> extends Object
An abstract class to be extended by visitor implementations for handling SecurityEvents.
Author:
Darran Lofthouse
  • Constructor Details

    • SecurityEventVisitor

      protected SecurityEventVisitor()
      Construct a security event visitor.
  • Method Details

    • handleUnknownEvent

      public R handleUnknownEvent(SecurityEvent event, P param)
      Handle any unhandled security event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handleDefiniteOutcomeEvent

      public R handleDefiniteOutcomeEvent(SecurityDefiniteOutcomeEvent event, P param)
      Handle a security definite outcome event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handleAuthenticationEvent

      public R handleAuthenticationEvent(SecurityAuthenticationEvent event, P param)
      Handle a security authentication event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handleAuthenticationSuccessfulEvent

      public R handleAuthenticationSuccessfulEvent(SecurityAuthenticationSuccessfulEvent event, P param)
      Handle a security authentication successful event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handleAuthenticationFailedEvent

      public R handleAuthenticationFailedEvent(SecurityAuthenticationFailedEvent event, P param)
      Handle a security authentication failed event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handlePermissionCheckEvent

      public R handlePermissionCheckEvent(SecurityPermissionCheckEvent event, P param)
      Handle a security permission check event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handlePermissionCheckSuccessfulEvent

      public R handlePermissionCheckSuccessfulEvent(SecurityPermissionCheckSuccessfulEvent event, P param)
      Handle a security permission check successful event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handlePermissionCheckFailedEvent

      public R handlePermissionCheckFailedEvent(SecurityPermissionCheckFailedEvent event, P param)
      Handle a security permission check failed event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handleSyslogAuditEvent

      public R handleSyslogAuditEvent(SyslogAuditEvent event, P param)
      Handle an auditable event that is to be logged to syslog.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value
    • handleRealmUnavailableEvent

      public R handleRealmUnavailableEvent(SecurityRealmUnavailableEvent event, P param)
      Handle a security realm unavailable event.
      Parameters:
      event - the security event
      param - the visitor parameter
      Returns:
      the visitor return value