@Requirement(traceTo="IFA-SEC-02",
status="in-progress")
public class ITKSimpleAudit
extends Object
implements AuditService
MESSAGE_PROCESSING_FAILURE, MESSAGE_RECEIPT_EVENT, MESSAGE_SENT_EVENT| Constructor and Description |
|---|
ITKSimpleAudit() |
| Modifier and Type | Method and Description |
|---|---|
void |
auditEvent(String event,
long eventTime,
ITKMessageProperties itkMessageProperties)
Writes an audit event to the audit service using the supplied information.
|
static AuditService |
getInstance()
Gets the single instance of ITKSimpleAudit.
|
@Requirement(traceTo="COR-DEH-04",
status="in-progress")
public void auditEvent(String event,
long eventTime,
ITKMessageProperties itkMessageProperties)
throws AuditException
AuditServiceauditEvent in interface AuditServiceevent - The string description of the event - e.g.
AuditService.MESSAGE_PROCESSING_FAILURE, AuditService.MESSAGE_RECEIPT_EVENT, AuditService.MESSAGE_SENT_EVENTeventTime - The time the event occurred (in unix time). Note depending on the implementation this
may differ from the time at which the audit record is actually committeditkMessageProperties - The properties of the message to which this event pertainsAuditException - If there are any issues accessing the underlying audit implementation
(e.g. I/O exception) or if the event and/or itkMessageProperties is nullpublic static final AuditService getInstance()
All content is available under the Open Government Licence, except where otherwise stated
All example source code is available under Apache 2.0, except where otherwise stated