Class TokenOAuthEvent
Object
se.curity.identityserver.sdk.data.events.OAuthEvent
se.curity.identityserver.sdk.data.events.TokenOAuthEvent
- All Implemented Interfaces:
SerializableAsMap,Event
- Direct Known Subclasses:
AccessTokenOAuthEvent,IdTokenOAuthEvent,IntrospectionOAuthEvent,RefreshTokenOAuthEvent
Common base class for OAuth Token events.
- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class se.curity.identityserver.sdk.data.events.OAuthEvent
getProfileId, getRequestingClientId, getRequestingClientName, getRequestingSubject, toString
-
Constructor Details
-
TokenOAuthEvent
-
-
Method Details
-
getCreated
Get theInstantthe token was created.- Returns:
- the
Instantthe token was created
-
getExpires
Get theInstantthe token expires.- Returns:
- the
Instantthe token expires
-
getPurpose
Get the purpose of the token.- Returns:
- the purpose of the token
-
getIssuer
Get the issuer of the token.- Returns:
- the issuer of the token
-
getSubject
Get the subject of the token.- Returns:
- the subject of the token
-
getAudience
- Returns:
- the audience of the token
-
getClaims
Get the claims of the token; as aMap.- Returns:
- the claims of the token
-
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.
-