Class JwtTokenHandler

java.lang.Object
org.forgerock.json.jose.tokenhandler.JwtTokenHandler
All Implemented Interfaces:
TokenHandler

@Deprecated public final class JwtTokenHandler extends Object implements TokenHandler
Deprecated.
Prefer SecretsJwtTokenHandler instead.
Token handler for creating tokens using a JWT as the store.
  • Constructor Details

    • JwtTokenHandler

      public JwtTokenHandler(JweAlgorithm jweAlgorithm, EncryptionMethod jweMethod, KeyPair jweKeyPair, JwsAlgorithm jwsAlgorithm, SigningHandler jwsHandler)
      Deprecated.
      Constructs a new JWT token handler that never expires.
      Parameters:
      jweAlgorithm - the JWE algorithm use to construct the key pair
      jweMethod - the encryption method to use
      jweKeyPair - key pair for the purpose of encryption
      jwsAlgorithm - the JWS algorithm to use
      jwsHandler - the signing handler
    • JwtTokenHandler

      public JwtTokenHandler(JweAlgorithm jweAlgorithm, EncryptionMethod jweMethod, KeyPair jweKeyPair, JwsAlgorithm jwsAlgorithm, SigningHandler jwsHandler, Optional<Long> tokenLifeTimeInSeconds, int tokenStatePaddingLength)
      Deprecated.
      Constructs a new JWT token handler.
      Parameters:
      jweAlgorithm - the JWE algorithm use to construct the key pair
      jweMethod - the encryption method to use
      jweKeyPair - key pair for the purpose of encryption
      jwsAlgorithm - the JWS algorithm to use
      jwsHandler - the signing handler
      tokenLifeTimeInSeconds - token life time in seconds
      tokenStatePaddingLength - desired length of state claim after padding
  • Method Details