Interface IdentifierAccessTokenCodec

All Superinterfaces:
Lifecycle

@ThreadSafe public interface IdentifierAccessTokenCodec extends Lifecycle
Service Provider Interface (SPI) for generating and decoding identifier-based access tokens. Implementations must be thread-safe.
  • Method Details

    • generate

      Generates a new identifier-based access token.
      Parameters:
      tokenAuthz - The access token authorisation. Not null.
      context - The token encoder context. Not null.
      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. Not null.
      context - The token codec context. Not null.
      Returns:
      The access token identifier.
      Throws:
      TokenDecodeException - If decoding failed.