SecurityProvider@FunctionalInterface public interface AuditProvider extends SecurityProvider
Security.Builder.addAuditProvider(AuditProvider)) a default provider will be used.
Default audit provider logs most events in Level.FINEST.
AuditEvent.AuditSeverity.AUDIT_FAILURE
and AuditEvent.AuditSeverity.ERROR
are logged in Level.SEVERE and AuditEvent.AuditSeverity.WARN is logged in Level.WARNING level.
Format of default audit provider log record (all end of lines are removed from message, not from stack trace):
year.month.day hour(24):minute:second LogLevel AUDIT auditSeverity tracingId auditEventType auditEventClassName location(class)
location(method) location(sourceFile) location(line) :: "audit message"
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
AuditProvider.AuditSource |
Source of an audit source (as in "where this audit event originated").
|
static interface |
AuditProvider.TracedAuditEvent |
Audit event sent to Audit provider.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.function.Consumer<AuditProvider.TracedAuditEvent> |
getAuditConsumer() |
Return you subscriber for audit events.
|
supportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjectsjava.util.function.Consumer<AuditProvider.TracedAuditEvent> getAuditConsumer()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.