Class IssuedDeviceCodeOAuthEvent

All Implemented Interfaces:
SerializableAsMap, AuditableEvent, Event

public class IssuedDeviceCodeOAuthEvent extends DeviceCodeOAuthEvent implements AuditableEvent
Event posted when an OAuth device code is issued.
Since:
2.3.0
  • Constructor Details

    • IssuedDeviceCodeOAuthEvent

      public IssuedDeviceCodeOAuthEvent(Instant created, Instant expires, Map<String,Object> claims, ClientIdentifier targetClientIdentifier, @Nullable String requestingSubject, String profileId)
      Parameters:
      created - the Instant the device code was created
      expires - the Instant the device code expires
      claims - the claims of the device code
      targetClientIdentifier - the target client identifier
      requestingSubject - the subject requesting the device code
      profileId - the ID of the profile from which this event originated
  • Method Details

    • getTargetClientId

      public String getTargetClientId()
      Get the ID of the client the device code is issued for.
      Returns:
      the ID of the target client
    • 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
      Overrides:
      asMap in class DeviceCodeOAuthEvent
      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.