Class JwtTokenHandler

    • Constructor Detail

      • 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