Class RefreshTokenOAuthEvent
Object
se.curity.identityserver.sdk.data.events.OAuthEvent
se.curity.identityserver.sdk.data.events.TokenOAuthEvent
se.curity.identityserver.sdk.data.events.RefreshTokenOAuthEvent
- All Implemented Interfaces:
SerializableAsMap,Event
- Direct Known Subclasses:
IssuedRefreshTokenOAuthEvent,RevokedRefreshTokenOAuthEvent
Common base class for OAuth Refresh Token events.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshTokenOAuthEvent(Instant created, Instant expires, String purpose, String issuer, String subject, List<String> audience, Map<String, Object> claims, Instant notBefore, String scope, String clientId, Delegation delegation, ClientIdentifier requestingClientIdentifier, @Nullable String requestingSubject, String profileId) -
Method Summary
Modifier and TypeMethodDescriptionasMap()Get a map representation of thisEvent.Get the ID of the client the token was issued to.Get theDelegationthat was used for creating the token.Get theInstantbefore which the token is not allowed to be used.getScope()Get the scope of the token as a space-separatedString.Methods inherited from class se.curity.identityserver.sdk.data.events.TokenOAuthEvent
getAudience, getClaims, getCreated, getExpires, getIssuer, getPurpose, getSubjectMethods inherited from class se.curity.identityserver.sdk.data.events.OAuthEvent
getProfileId, getRequestingClientId, getRequestingClientName, getRequestingSubject, toString
-
Constructor Details
-
RefreshTokenOAuthEvent
public RefreshTokenOAuthEvent(Instant created, Instant expires, String purpose, String issuer, String subject, List<String> audience, Map<String, Object> claims, Instant notBefore, String scope, String clientId, Delegation delegation, ClientIdentifier requestingClientIdentifier, @Nullable String requestingSubject, String profileId)
-
-
Method Details
-
getNotBefore
Get theInstantbefore which the token is not allowed to be used.- Returns:
- the
Instantbefore which the token is not allowed to be used
-
getScope
Get the scope of the token as a space-separatedString.- Returns:
- the scope of the token
-
getClientId
Get the ID of the client the token was issued to.- Returns:
- the ID of the client the token was issued to
-
getDelegation
Get theDelegationthat was used for creating the token.- Returns:
- the token's
Delegation
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Overrides:
asMapin classTokenOAuthEvent- 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.
-