audit(String, String, String, Decision , Map< String, Object >) method

This method allows a client to issue an audit record to the audit trail.

Syntax

void audit ( String resourceClass , String resourceID , String action , Decision decision , Map< String, Object > attributes ) throws SecException

Parameters

Exceptions

Usage

There is no guarantee that the record will actually be added to any of the configured audit destinations or that there are even any destinations configured. The client may wish to call

SecContext.isAuditEnabled

in order to determine if the audit record will actually be written. This can save some time building up extra attributes for the audit record.