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 Summary
Constructors Modifier Constructor Description protected
SecurityEventVisitor()
Construct a security event visitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
handleAuthenticationEvent(SecurityAuthenticationEvent event, P param)
Handle a security authentication event.R
handleAuthenticationFailedEvent(SecurityAuthenticationFailedEvent event, P param)
Handle a security authentication failed event.R
handleAuthenticationSuccessfulEvent(SecurityAuthenticationSuccessfulEvent event, P param)
Handle a security authentication successful event.R
handleDefiniteOutcomeEvent(SecurityDefiniteOutcomeEvent event, P param)
Handle a security definite outcome event.R
handlePermissionCheckEvent(SecurityPermissionCheckEvent event, P param)
Handle a security permission check event.R
handlePermissionCheckFailedEvent(SecurityPermissionCheckFailedEvent event, P param)
Handle a security permission check failed event.R
handlePermissionCheckSuccessfulEvent(SecurityPermissionCheckSuccessfulEvent event, P param)
Handle a security permission check successful event.R
handleRealmUnavailableEvent(SecurityRealmUnavailableEvent event, P param)
Handle a security realm unavailable event.R
handleSyslogAuditEvent(SyslogAuditEvent event, P param)
Handle an auditable event that is to be logged to syslog.R
handleUnknownEvent(SecurityEvent event, P param)
Handle any unhandled security event.
-
-
-
Method Detail
-
handleUnknownEvent
public R handleUnknownEvent(SecurityEvent event, P param)
Handle any unhandled security event.- Parameters:
event
- the security eventparam
- 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 eventparam
- 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 eventparam
- 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 eventparam
- 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 eventparam
- 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 eventparam
- 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 eventparam
- 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 eventparam
- 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 eventparam
- 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 eventparam
- the visitor parameter- Returns:
- the visitor return value
-
-