Class SecretEncryption

    • 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
      • supportedAlgorithmsMessage

        public java.lang.String supportedAlgorithmsMessage()
        Returns:
        message explaining the supported algorithms
      • getSecret

        public java.lang.String getSecret()
        Returns:
        a string build the secret byte[] and UTF_8 charset
      • setSecret

        public void setSecret​(java.lang.String secret)
        Sets secret byte[] with a string with UTF_8 charset.
        Parameters:
        secret - UTF_8 string