Class FailedCatVerificationEvent

Object
se.curity.identityserver.sdk.data.events.FailedCatVerificationEvent
All Implemented Interfaces:
SerializableAsMap, AuditableEvent, Event

public final class FailedCatVerificationEvent extends Object implements AuditableEvent
Event posted when client attestation token fails verification
Since:
6.1
  • Constructor Details

    • FailedCatVerificationEvent

      public FailedCatVerificationEvent(String clientId, String errorMessage, @Nullable String unsatisfiedPolicy)
  • Method Details

    • getClientId

      public String getClientId()
      Get the ID of the client requesting HAAPI token using Client Attestation Token (CAT)
      Returns:
      the ID of the client
    • getErrorMessage

      public String getErrorMessage()
      Get the error message corresponding to CAT verification failure
      Returns:
      the error message
    • getUnsatisfiedPolicy

      public String getUnsatisfiedPolicy()
      Get the policy that failed the client attestation token verification
      Returns:
      the policy that resulted in failure of the CAT token
    • getAuditData

      public AuditData getAuditData()
      Description copied from interface: AuditableEvent
      Get all AuditData associated with this auditable event.

      This method must always return the same instant of AuditData.

      Specified by:
      getAuditData in interface AuditableEvent
      Returns:
      the AuditData concisely describing the auditable data of this event
    • asMap

      public Map<String,Object> asMap()
      Description copied from interface: Event
      Get a map representation of this Event.
      Specified by:
      asMap in interface Event
      Specified by:
      asMap in interface SerializableAsMap
      Returns:
      a Map representation of this Event. This can be used to serialize events. Sub-types are encouraged to override this method, calling super.asMap() and enriching the returned mutable Map with the more specific information added by the sub-type.