Class SecurityEvent
java.lang.Object
org.wildfly.security.auth.server.event.SecurityEvent
- Direct Known Subclasses:
SecurityDefiniteOutcomeEvent,SecurityRealmUnavailableEvent,SyslogAuditEvent
Base class for security events emitted from a
SecurityDomain.- Author:
- Darran Lofthouse
-
Method Summary
Modifier and TypeMethodDescription<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.Obtain theInstantthis event was created.Get theSecurityIdentitythat was active at the time this event was triggered.
-
Method Details
-
getSecurityIdentity
Get theSecurityIdentitythat was active at the time this event was triggered.- Returns:
- the
SecurityIdentitythat was active at the time this event was triggered.
-
getInstant
Obtain theInstantthis event was created.- Returns:
- the
Instantthis event was created.
-
accept
Accept the given visitor, calling the method which is most applicable to this event type.- Type Parameters:
P- the visitor parameter typeR- the visitor return type- Parameters:
visitor- the visitorparam- the parameter to pass to the visitorhandleXxxmethod- Returns:
- the value returned from the visitor
handleXxxmethod
-