Package io.helidon.security.annotations
Annotation Interface Audited
An annotation to specify server resources to be audited.
- 
Optional Element SummaryOptional ElementsModifier 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final AuditEvent.AuditSeverityDefault severity for non-OK statuses.static final StringDefault event type: "request".static final StringDefault message format: "%3$s %1$s \"%2$s\" %5$s %6$s requested by %4$s".static final AuditEvent.AuditSeverityDefault severity for OK status.
- 
Field Details- 
DEFAULT_EVENT_TYPEDefault event type: "request".- See Also:
 
- 
DEFAULT_MESSAGE_FORMATDefault 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_SEVERITYDefault severity for OK status.
- 
DEFAULT_ERROR_SEVERITYDefault severity for non-OK statuses.
 
- 
- 
Element Details- 
valueString valueEvent type of this audit event.- Returns:
- event type, defaults to "request"
 - Default:
- "request"
 
- 
messageFormatString 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"
 
- 
okSeverityAuditEvent.AuditSeverity okSeveritySeverity of request with successful response (in http, this would be 1** 2** and 3** statuses).- Returns:
- severity to use
 - Default:
- SUCCESS
 
- 
errorSeverityAuditEvent.AuditSeverity errorSeveritySeverity of request with unsuccessful response (in http, this would be 4** and 5** status).- Returns:
- severity to use
 - Default:
- FAILURE
 
 
-