-
- All Known Subinterfaces:
AuditProvider.TracedAuditEvent
public interface AuditEventAn audit event to store using an Audit provider. You should provide your own implementation class.- See Also:
SecurityContext.audit(AuditEvent),AuditProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAuditEvent.AuditParamNamed parameters of audit event.static classAuditEvent.AuditSeveritySeverity ofAuditEvent.
-
Field Summary
Fields Modifier and Type Field Description static StringAUDIT_TYPE_PREFIXReserved event type prefix for audit events.static StringAUTHN_TYPE_PREFIXReserved event type prefix for authentication events.static StringAUTHZ_TYPE_PREFIXReserved event type prefix for authorization events.static StringOUTBOUND_TYPE_PREFIXReserved event type prefix for outbound security (such as identity propagation) events.static StringSECURITY_TYPE_PREFIXReserved event type prefix for security component.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringeventType()Gets the type of thisAuditEvent.StringmessageFormat()Gets the message format of thisAuditEventto be used withString.format(String, Object...).List<AuditEvent.AuditParam>params()Parameters of this audit event, used inString.format(String, Object...)when creating the audit message.AuditEvent.AuditSeverityseverity()Gets the severity of thisAuditEvent.Optional<Throwable>throwable()Gets anThrowableobject from which additional audit information can be obtained.
-
-
-
Field Detail
-
SECURITY_TYPE_PREFIX
static final String SECURITY_TYPE_PREFIX
Reserved event type prefix for security component.- See Also:
- Constant Field Values
-
AUTHN_TYPE_PREFIX
static final String AUTHN_TYPE_PREFIX
Reserved event type prefix for authentication events. You may trigger such audit events (e.g. when writing an authentication provider, or from app), yet they MUST be related to authentication.- See Also:
- Constant Field Values
-
AUTHZ_TYPE_PREFIX
static final String AUTHZ_TYPE_PREFIX
Reserved event type prefix for authorization events. You may trigger such audit events (e.g. when writing an authorization provider, or from app), yet they MUST be related to authorization.- See Also:
- Constant Field Values
-
OUTBOUND_TYPE_PREFIX
static final String OUTBOUND_TYPE_PREFIX
Reserved event type prefix for outbound security (such as identity propagation) events. You may trigger such audit events (e.g. when writing an identity propagation provider, or from app), yet they MUST be related to identity propagation.- See Also:
- Constant Field Values
-
AUDIT_TYPE_PREFIX
static final String AUDIT_TYPE_PREFIX
Reserved event type prefix for audit events. You may trigger such events ONLY when writing audit providers.- See Also:
- Constant Field Values
-
-
Method Detail
-
eventType
String eventType()
Gets the type of thisAuditEvent.- Returns:
- the type of this
AuditEventrepresented as String.
-
throwable
Optional<Throwable> throwable()
Gets anThrowableobject from which additional audit information can be obtained.- Returns:
- an
Throwablewith additional information if available.
-
params
List<AuditEvent.AuditParam> params()
Parameters of this audit event, used inString.format(String, Object...)when creating the audit message.- Returns:
- parameters of this audit message
-
messageFormat
String messageFormat()
Gets the message format of thisAuditEventto be used withString.format(String, Object...).- Returns:
- English message format (this is a fallback if internationalization is not configured).
-
severity
AuditEvent.AuditSeverity severity()
Gets the severity of thisAuditEvent.- Returns:
- severity
-
-