Class DeviceCodeOAuthEvent

Object
se.curity.identityserver.sdk.data.events.OAuthEvent
se.curity.identityserver.sdk.data.events.DeviceCodeOAuthEvent
All Implemented Interfaces:
SerializableAsMap, Event
Direct Known Subclasses:
ConsumedDeviceCodeOAuthEvent, IssuedDeviceCodeOAuthEvent

public abstract class DeviceCodeOAuthEvent extends OAuthEvent
Common base class for device code OAuth events.
Since:
2.3.0
  • Constructor Details

    • DeviceCodeOAuthEvent

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

    • getCreated

      public Instant getCreated()
      Get the Instant the device code was created.
      Returns:
      the Instant the device code was created
    • getExpires

      public Instant getExpires()
      Get the Instant the device code expires.
      Returns:
      the Instant the device code expires
    • getClaims

      public Map<String,Object> getClaims()
      Get the claims of the device code; as a Map.
      Returns:
      the claims of the device code
    • 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 OAuthEvent
      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.