Class SecretEncryptionConfiguration

    • Constructor Detail

      • SecretEncryptionConfiguration

        public SecretEncryptionConfiguration()
      • SecretEncryptionConfiguration

        public SecretEncryptionConfiguration​(byte[] secret)
      • SecretEncryptionConfiguration

        public SecretEncryptionConfiguration​(String secret)
      • SecretEncryptionConfiguration

        public SecretEncryptionConfiguration​(byte[] secret,
                                             com.nimbusds.jose.JWEAlgorithm algorithm,
                                             com.nimbusds.jose.EncryptionMethod method)
      • SecretEncryptionConfiguration

        public SecretEncryptionConfiguration​(String secret,
                                             com.nimbusds.jose.JWEAlgorithm algorithm,
                                             com.nimbusds.jose.EncryptionMethod method)
    • Method Detail

      • supports

        public boolean supports​(com.nimbusds.jose.JWEAlgorithm algorithm,
                                com.nimbusds.jose.EncryptionMethod method)
        Description copied from interface: EncryptionConfiguration
        Whether this encryption configuration supports this algorithm and encryption method.
        Parameters:
        algorithm - the encryption algorithm
        method - the encryption method
        Returns:
        whether this encryption configuration supports this algorithm and encryption method
      • getSecret

        public String getSecret()
      • setSecret

        public void setSecret​(String secret)
      • getSecretBytes

        public byte[] getSecretBytes()
      • setSecretBytes

        public void setSecretBytes​(byte[] secretBytes)
      • getSecretBase64

        public String getSecretBase64()
      • setSecretBase64

        public void setSecretBase64​(String secret)