Package io.helidon.security.annotations
Annotation Interface Audited
An annotation to specify server resources to be audited.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionSeverity of request with unsuccessful response (in http, this would be 4** and 5** status).The message format of this audit event.Severity of request with successful response (in http, this would be 1** 2** and 3** statuses).Event type of this audit event. -
Field Summary
Modifier and TypeFieldDescriptionstatic final AuditEvent.AuditSeverity
Default severity for non-OK statuses.static final String
Default event type: "request".static final String
Default message format: "%3$s %1$s \"%2$s\" %5$s %6$s requested by %4$s".static final AuditEvent.AuditSeverity
Default severity for OK status.
-
Field Details
-
DEFAULT_EVENT_TYPE
Default event type: "request".- See Also:
-
DEFAULT_MESSAGE_FORMAT
Default message format: "%3$s %1$s \"%2$s\" %5$s %6$s requested by %4$s". The output is: <STATUS> <METHOD> <PATH> <TRANSPORT> <RESOURCE_TYPE> requested by <SUBJECT>- See Also:
-
DEFAULT_OK_SEVERITY
Default severity for OK status. -
DEFAULT_ERROR_SEVERITY
Default severity for non-OK statuses.
-
-
Element Details
-
value
String valueEvent type of this audit event.- Returns:
- event type, defaults to "request"
- Default:
"request"
-
messageFormat
String messageFormatThe message format of this audit event. The following parameters will be provided (in order):- method: method requested (GET, POST for http)
- path: the requested path (optional)
- status: status code/status string (depends on protocol and integrated framework)
- subject: current security subject
- transport: transport (such as http)
- resourceType: resource type requested (optional)
- targetUri: full uri (as available, optional)
- Returns:
- message format to create message to be audited
- Default:
"%3$s %1$s \"%2$s\" %5$s %6$s requested by %4$s"
-
okSeverity
AuditEvent.AuditSeverity okSeveritySeverity of request with successful response (in http, this would be 1** 2** and 3** statuses).- Returns:
- severity to use
- Default:
SUCCESS
-
errorSeverity
AuditEvent.AuditSeverity errorSeveritySeverity of request with unsuccessful response (in http, this would be 4** and 5** status).- Returns:
- severity to use
- Default:
FAILURE
-