Class AbstractEncryptionConfiguration

    • Field Detail

      • algorithm

        protected com.nimbusds.jose.JWEAlgorithm algorithm
      • method

        protected com.nimbusds.jose.EncryptionMethod method
    • Constructor Detail

      • AbstractEncryptionConfiguration

        public AbstractEncryptionConfiguration()
    • Method Detail

      • buildEncrypter

        protected abstract com.nimbusds.jose.JWEEncrypter buildEncrypter()
        Build the appropriate encrypter.
        Returns:
        the appropriate encrypter
      • decrypt

        public void decrypt​(com.nimbusds.jwt.EncryptedJWT encryptedJWT)
                     throws com.nimbusds.jose.JOSEException
        Description copied from interface: EncryptionConfiguration
        Decrypt an encrypted JWT.
        Specified by:
        decrypt in interface EncryptionConfiguration
        Parameters:
        encryptedJWT - the encrypted JWT
        Throws:
        com.nimbusds.jose.JOSEException - exception when decrypting the JWT
      • buildDecrypter

        protected abstract com.nimbusds.jose.JWEDecrypter buildDecrypter()
        Build the appropriate decrypter.
        Returns:
        the appropriate decrypter
      • getAlgorithm

        public com.nimbusds.jose.JWEAlgorithm getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(com.nimbusds.jose.JWEAlgorithm algorithm)
      • getMethod

        public com.nimbusds.jose.EncryptionMethod getMethod()
      • setMethod

        public void setMethod​(com.nimbusds.jose.EncryptionMethod method)