Class CredentialAuditEvent

java.lang.Object
org.springframework.boot.actuate.audit.AuditEvent
se.swedenconnect.spring.saml.idp.audit.CredentialAuditEvent
All Implemented Interfaces:
Serializable

public class CredentialAuditEvent extends org.springframework.boot.actuate.audit.AuditEvent
Audit event for creating event objects concerning credentials monitoring. See Credentials monitoring.
Author:
Martin Lindström
See Also:
  • Field Details

    • SYSTEM_PRINCIPAL

      public static final String SYSTEM_PRINCIPAL
      Symbolic constant for system principal.
      See Also:
  • Constructor Details

    • CredentialAuditEvent

      protected CredentialAuditEvent(@Nonnull CredentialAuditEvents type, long timestamp, @Nonnull Map<String,Object> auditData)
      Constructor
      Parameters:
      type - the audit type
      timestamp - the timestamp
      auditData - the audit data
  • Method Details

    • of

      public static <T extends AbstractCredentialMonitoringEvent> CredentialAuditEvent of(@Nonnull T event)
      Transforms a credential monitoring event into an audit event.
      Type Parameters:
      T - the credential monitoring event type
      Parameters:
      event - the event to transform
      Returns:
      a CredentialAuditEvent
    • getLogString

      public String getLogString()
      Gets a string suitable to include in log entries.
      Returns:
      a log string