Class SyslogAuditEvent
- java.lang.Object
-
- org.wildfly.security.auth.server.event.SecurityEvent
-
- org.wildfly.security.auth.server.event.SyslogAuditEvent
-
- Direct Known Subclasses:
Rfc3164SyslogEvent
,Rfc5424SyslogEvent
public abstract class SyslogAuditEvent extends SecurityEvent
An abstract class to be extended by specific syslog audit events to be handled.- Author:
- Justin Cook
-
-
Field Summary
Fields Modifier and Type Field Description private org.jboss.logmanager.handlers.SyslogHandler.SyslogType
format
-
Constructor Summary
Constructors Constructor Description SyslogAuditEvent(SecurityIdentity securityIdentity, org.jboss.logmanager.handlers.SyslogHandler.SyslogType format)
Constructor for a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
Raccept(SecurityEventVisitor<P,R> visitor, P param)
Accept the given visitor, calling the method which is most applicable to this event type.org.jboss.logmanager.handlers.SyslogHandler.SyslogType
getFormat()
Gets the syslog format that is to be used for this audit event-
Methods inherited from class org.wildfly.security.auth.server.event.SecurityEvent
getInstant, getSecurityIdentity
-
-
-
-
Constructor Detail
-
SyslogAuditEvent
SyslogAuditEvent(SecurityIdentity securityIdentity, org.jboss.logmanager.handlers.SyslogHandler.SyslogType format)
Constructor for a new instance.- Parameters:
securityIdentity
- theSecurityIdentity
that corresponds to this event that is to be loggedformat
- The syslog format that is to be used for this event
-
-
Method Detail
-
getFormat
public org.jboss.logmanager.handlers.SyslogHandler.SyslogType getFormat()
Gets the syslog format that is to be used for this audit event- Returns:
- The syslog format
-
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.- Overrides:
accept
in classSecurityEvent
- Type Parameters:
P
- the visitor parameter typeR
- the visitor return type- Parameters:
visitor
- the visitorparam
- the parameter to pass to the visitorhandleXxx
method- Returns:
- the value returned from the visitor
handleXxx
method
-
-