Class 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 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:
        tryPublish in interface AuditEventPublisher
        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: AuditEventPublisher
        Determines if the audit service is auditing the specified topic in the specified realm. If the realm is either null or 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:
        isAuditing in interface AuditEventPublisher
        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:
        true if the topic should be audited.