Class AuditData

Object
se.curity.identityserver.sdk.data.AuditData
All Implemented Interfaces:
SerializableAsMap

public final class AuditData extends Object implements SerializableAsMap
Data class containing audit data.
Since:
2.2.0
  • Method Details

    • getType

      public String getType()
      Get the type of the audit event.
      Returns:
      the audit event type
    • getId

      public UUID getId()
      Get the unique ID of the audit event.
      Returns:
      the audit event ID
    • getInstant

      public Instant getInstant()
      Get the instant that the audited action that triggered the event occurred.
      Returns:
      the instant of the audit event
    • getMessage

      public String getMessage()
      Get the human readable audit message describing the event.
      Returns:
      the audit message
    • getSubject

      @Nullable public @Nullable String getSubject()
      Get the subject affected by the event.
      Returns:
      the affected subject
    • getClient

      @Nullable public @Nullable String getClient()
      Get the ID of the client affected by the event.
      Returns:
      the affected client
    • getResource

      @Nullable public @Nullable String getResource()
      Get the Id of the resource affected by the event.
      Returns:
      the affected resource
    • getAuthenticatedSubject

      @Nullable public @Nullable String getAuthenticatedSubject()
      Get the authenticated subject triggering the event.
      Returns:
      the authenticated subject
    • getAuthenticatedClient

      @Nullable public @Nullable String getAuthenticatedClient()
      get the authenticated client triggering the event.
      Returns:
      the authenticated client
    • getAcr

      @Nullable public @Nullable String getAcr()
      Get the ACR of the authenticated subject.
      Returns:
      the ACR
    • getEndpoint

      @Nullable public @Nullable String getEndpoint()
      Get the endpoint that was called to trigger the event.
      Returns:
      the called endpoint
    • getSession

      @Nullable public @Nullable String getSession()
      Get the session ID on which the event was triggered.
      Returns:
      the session ID
    • getClientVerifierType

      public String getClientVerifierType()
      Get the verifier type used for client authentication.
      Returns:
      the client verifier type.
    • getUsedSecondaryClientVerifier

      public Boolean getUsedSecondaryClientVerifier()
      Get boolean with information if a secondary verifier was used for client authentication.
      Returns:
      optional boolean with information if a secondary verifier was used.
    • asMap

      public Map<String,Object> asMap()
      Specified by:
      asMap in interface SerializableAsMap
      Returns:
      representation of this Object as a Map containing only Java primitive types, plus instances of Collection, String and Map.

      It should be possible to fully re-construct this Object from a Map obtained by calling this method.

      Unfortunately, in Java it is quite hard to make the type system enforce this condition, so implementators must be especially careful about this.

    • toString

      public String toString()
      Overrides:
      toString in class Object