public interface AuditService
MESSAGE_SENT_EVENT
.
An additional audit call may then be required for the same logical action should
any processing errors occur - e.g. connection timeouts MESSAGE_PROCESSING_FAILURE
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_PROCESSING_FAILURE
Constant representing the event of message processing failure
|
static String |
MESSAGE_RECEIPT_EVENT
Constant representing the receipt of an ITK message
|
static String |
MESSAGE_SENT_EVENT
Constant representing the sending of an ITK message
|
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 final String MESSAGE_RECEIPT_EVENT
static final String MESSAGE_SENT_EVENT
static final String MESSAGE_PROCESSING_FAILURE
@Requirement(traceTo="IFA-SEC-02", status="abstract") void auditEvent(String event, long eventTime, ITKMessageProperties itkMessageProperties) throws AuditException
event
- The string description of the event - e.g.
MESSAGE_PROCESSING_FAILURE
, MESSAGE_RECEIPT_EVENT
, MESSAGE_SENT_EVENT
eventTime
- 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 null
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