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 Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
CredentialAuditEvent
(CredentialAuditEvents type, long timestamp, Map<String, Object> auditData) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets a string suitable to include in log entries.static <T extends AbstractCredentialMonitoringEvent>
CredentialAuditEventof
(T event) Transforms a credential monitoring event into an audit event.Methods inherited from class org.springframework.boot.actuate.audit.AuditEvent
getData, getPrincipal, getTimestamp, getType, toString
-
Field Details
-
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 typetimestamp
- the timestampauditData
- 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
Gets a string suitable to include in log entries.- Returns:
- a log string
-