Class OAuth2TokenContext
java.lang.Object
com.codename1.backend.security.oauth2.server.authorization.OAuth2TokenContext
One token about to be signed, as an
OAuth2TokenCustomizer sees it.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringgetTokenType()of an access token.static final StringgetTokenType()of an ID token. -
Method Summary
Modifier and TypeMethodDescriptionThe grant the token is issued under; null forclient_credentials, which keeps none.Thegrant_typeof the request the token answers.The claims so far, to add to or change.The user, or forclient_credentialsthe client's id.ACCESS_TOKENorID_TOKEN.
-
Field Details
-
ACCESS_TOKEN
-
ID_TOKEN
-
-
Method Details
-
getTokenType
ACCESS_TOKENorID_TOKEN. -
getRegisteredClient
-
getAuthorization
The grant the token is issued under; null forclient_credentials, which keeps none. Its attributeauthoritieslists what the user had been granted when they approved. -
getPrincipalName
The user, or forclient_credentialsthe client's id. -
getAuthorizationGrantType
Thegrant_typeof the request the token answers. -
getAuthorizedScopes
-
getClaims
The claims so far, to add to or change.
-