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
Common base class for device code OAuth events.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceCodeOAuthEvent(Instant created, Instant expires, Map<String, Object> claims, @Nullable ClientIdentifier requestingClientIdentifier, @Nullable String requestingSubject, String profileId) Constructor forDeviceCodeOAuthEvent. -
Method Summary
Methods inherited from class se.curity.identityserver.sdk.data.events.OAuthEvent
getProfileId, getRequestingClientId, getRequestingClientName, getRequestingSubject, putIfNotNull, toString
-
Constructor Details
-
DeviceCodeOAuthEvent
public DeviceCodeOAuthEvent(Instant created, Instant expires, Map<String, Object> claims, @Nullable ClientIdentifier requestingClientIdentifier, @Nullable String requestingSubject, String profileId) Constructor forDeviceCodeOAuthEvent.- Parameters:
created- theInstantthe device code was createdexpires- theInstantthe device code expiresclaims- the claims of the device coderequestingClientIdentifier- the requesting client identifierrequestingSubject- the requesting subjectprofileId- the ID of the profile from which this event originated
-
-
Method Details
-
getCreated
Get theInstantthe device code was created.- Returns:
- the
Instantthe device code was created
-
getExpires
Get theInstantthe device code expires.- Returns:
- the
Instantthe device code expires
-
getClaims
Get the claims of the device code; as aMap.- Returns:
- the claims of the device code
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Overrides:
asMapin classOAuthEvent- 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.
-