Interface IdentifierAccessTokenCodec
- All Superinterfaces:
Lifecycle
Service Provider Interface (SPI) for generating and decoding
identifier-based access tokens. Implementations must be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.id.Identifier
decode
(String tokenValue, TokenCodecContext context) Decodes the specified bearer access token value to extract the token identifier.generate
(AccessTokenAuthorization tokenAuthz, TokenEncoderContext context) Generates a new identifier-based access token.
-
Method Details
-
generate
Generates a new identifier-based access token.- Parameters:
tokenAuthz
- The access token authorisation. Notnull
.context
- The token encoder context. Notnull
.- Returns:
- The identifier-based access token.
-
decode
com.nimbusds.oauth2.sdk.id.Identifier decode(String tokenValue, TokenCodecContext context) throws TokenDecodeException Decodes the specified bearer access token value to extract the token identifier.- Parameters:
tokenValue
- The bearer access token value. Notnull
.context
- The token codec context. Notnull
.- Returns:
- The access token identifier.
- Throws:
TokenDecodeException
- If decoding failed.
-