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, getExpiresMethods 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- theInstantthe device code was createdexpires- theInstantthe 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:AuditableEventGet allAuditDataassociated with this auditable event.This method must always return the same instant of
AuditData.- Specified by:
getAuditDatain interfaceAuditableEvent- Returns:
- the
AuditDataconcisely describing the auditable data of this event
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Overrides:
asMapin classDeviceCodeOAuthEvent- Returns:
- a
Maprepresentation of thisEvent. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()and enriching the returned mutableMapwith the more specific information added by the sub-type.
-