Class IssuedDeviceCodeOAuthEvent
Object
se.curity.identityserver.sdk.data.events.OAuthEvent
se.curity.identityserver.sdk.data.events.DeviceCodeOAuthEvent
se.curity.identityserver.sdk.data.events.IssuedDeviceCodeOAuthEvent
- All Implemented Interfaces:
SerializableAsMap
,AuditableEvent
,Event
Event posted when an OAuth device code is issued.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionIssuedDeviceCodeOAuthEvent
(Instant created, Instant expires, Map<String, Object> claims, ClientIdentifier targetClientIdentifier, @Nullable String requestingSubject, String profileId) Constructor forIssuedDeviceCodeOAuthEvent
. -
Method Summary
Methods inherited from class se.curity.identityserver.sdk.data.events.DeviceCodeOAuthEvent
getClaims, getCreated, getExpires
Methods inherited from class se.curity.identityserver.sdk.data.events.OAuthEvent
getProfileId, getRequestingClientId, getRequestingClientName, getRequestingSubject, toString
-
Constructor Details
-
IssuedDeviceCodeOAuthEvent
public IssuedDeviceCodeOAuthEvent(Instant created, Instant expires, Map<String, Object> claims, ClientIdentifier targetClientIdentifier, @Nullable String requestingSubject, String profileId) Constructor forIssuedDeviceCodeOAuthEvent
.- Parameters:
created
- theInstant
the device code was createdexpires
- theInstant
the device code expiresclaims
- the claims of the device codetargetClientIdentifier
- the target client identifierrequestingSubject
- the subject requesting the device codeprofileId
- the ID of the profile from which this event originated
-
-
Method Details
-
getTargetClientId
Get the ID of the client the device code is issued for.- Returns:
- the ID of the target client
-
getAuditData
Description copied from interface:AuditableEvent
Get allAuditData
associated with this auditable event.This method must always return the same instant of
AuditData
.- Specified by:
getAuditData
in interfaceAuditableEvent
- Returns:
- the
AuditData
concisely describing the auditable data of this event
-
asMap
Description copied from interface:Event
Get a map representation of thisEvent
.- Specified by:
asMap
in interfaceEvent
- Specified by:
asMap
in interfaceSerializableAsMap
- Overrides:
asMap
in classDeviceCodeOAuthEvent
- Returns:
- a
Map
representation of thisEvent
. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()
and enriching the returned mutableMap
with the more specific information added by the sub-type.
-