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 Summary
-
Constructor Summary
ConstructorDescriptionSaml2AuditEvent
(Saml2AuditEvents type, long timestamp, String spEntityId, String authnRequestId, Saml2AuditData... data) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets a string suitable to include in log entries.Methods inherited from class org.springframework.boot.actuate.audit.AuditEvent
getData, getPrincipal, getTimestamp, getType, toString
-
Field Details
-
UNKNOWN_SP
Symbolic constant for an unknown SP.- See Also:
-
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 eventtimestamp
- the timestamp (in millis since epoch)spEntityId
- the entityID of the requesting SPauthnRequestId
- the ID of theAuthnRequest
data
- audit data
-
-
Method Details
-
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
-