Class SoapSTSAuditEventPublisher
- java.lang.Object
-
- org.forgerock.openam.sts.soap.audit.SoapSTSAuditEventPublisher
-
- All Implemented Interfaces:
AuditEventPublisher
public final class SoapSTSAuditEventPublisher extends Object implements AuditEventPublisher
Responsible for sending locally created audit events to the OpenAM AuditService.- Since:
- 13.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAuditing(String realm, String topic, AuditConstants.EventName eventName)Determines if the audit service is auditing the specified topic in the specified realm.voidtryPublish(String topic, org.forgerock.audit.events.AuditEvent auditEvent)Send create request to OpenAM server's CREST AuditService with audit event JSON as payload.
-
-
-
Method Detail
-
tryPublish
public void tryPublish(String topic, org.forgerock.audit.events.AuditEvent auditEvent)
Send create request to OpenAM server's CREST AuditService with audit event JSON as payload.- Specified by:
tryPublishin interfaceAuditEventPublisher- Parameters:
topic- Coarse-grained categorization of the AuditEvent's type.auditEvent- AuditEvent to be published.
-
isAuditing
public boolean isAuditing(String realm, String topic, AuditConstants.EventName eventName)
Description copied from interface:AuditEventPublisherDetermines if the audit service is auditing the specified topic in the specified realm. If the realm is eithernullor empty, the check will be done against the default audit service. Note that We deliberately do not provide a convenience method with no realm to force implementers to consider providing the realm. We must publish per realm wherever applicable.- Specified by:
isAuditingin interfaceAuditEventPublisher- Parameters:
realm- The realm in which the audit event occurred, or null if realm is not applicable.topic- The auditing topic.eventName- The event name, may be null if not known.- Returns:
trueif the topic should be audited.
-
-