public class CommonAudit extends Object
This class manages the AuditService instances and Audit Event Handlers that correspond to the publishers defined in OpenDJ configuration.
In theory there should be only one instance of AuditService for all the event handlers but defining one service per handler allow to perform filtering at the DJ server level.
Modifier and Type | Class and Description |
---|---|
static interface |
CommonAudit.HttpLogger
Represents a ForgeRock common audit based logger which can be used to log HTTP access audit events.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TRANSACTION_ID
Transaction id used when the incoming request does not contain a transaction id.
|
Constructor and Description |
---|
CommonAudit(ServerContext serverContext)
Creates the common audit.
|
Modifier and Type | Method and Description |
---|---|
Collection<? extends CommonAudit.HttpLogger> |
getHttpLogRequestHandlers()
Returns the audit service that manages HTTP Access logging.
|
boolean |
isHttpAccessLogEnabled()
Indicates if HTTP access logging is enabled for common audit.
|
void |
shutdown()
Shutdown common audit.
|
public static final String DEFAULT_TRANSACTION_ID
public CommonAudit(ServerContext serverContext)
serverContext
- The server context.public void shutdown()
public boolean isHttpAccessLogEnabled()
true
if there is at least one HTTP access logger enabled for common audit.public Collection<? extends CommonAudit.HttpLogger> getHttpLogRequestHandlers()
Copyright 2010-2022 ForgeRock AS.