Class Saml2AuditEvent

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

public class Saml2AuditEvent extends org.springframework.boot.actuate.audit.AuditEvent
Audit event for creating event objects for the SAML IdP.
Author:
Martin Lindström
See Also:
  • Field Details

    • UNKNOWN_SP

      public static final String UNKNOWN_SP
      Symbolic constant for an unknown SP.
      See Also:
    • UNKNOWN_AUTHN_REQUEST_ID

      public static final String UNKNOWN_AUTHN_REQUEST_ID
      Symbolic constant for an unknown AuthnRequest ID.
      See Also:
  • Constructor Details

    • Saml2AuditEvent

      public Saml2AuditEvent(Saml2AuditEvents type, long timestamp, String spEntityId, String authnRequestId, Saml2AuditData... data)
      Constructor.
      Parameters:
      type - the type of audit event
      timestamp - the timestamp (in millis since epoch)
      spEntityId - the entityID of the requesting SP
      authnRequestId - the ID of the AuthnRequest
      data - audit data
  • Method Details

    • getLogString

      public String getLogString()
      Gets a string suitable to include in log entries. It does not dump the entire audit data that can contain sensible data (that should not be present in proceess logs).
      Returns:
      a log string