Class DecryptResult


  • public final class DecryptResult
    extends Object
    Represents the details of decrypt operation result.
    • Constructor Detail

      • DecryptResult

        public DecryptResult​(byte[] plaintext,
                             EncryptionAlgorithm algorithm,
                             String keyId)
        Creates the instance of Decrypt Result holding decrypted content.
        Parameters:
        plaintext - The decrypted content.
        algorithm - The algorithm used to decrypt the content.
        keyId - The identifier of the key usd for the decryption operation.
    • Method Detail

      • getKeyId

        public String getKeyId()
        Get the identifier of the key used for the decryption operation
        Returns:
        the key identifier
      • getPlainText

        public byte[] getPlainText()
        Get the encrypted content.
        Returns:
        The decrypted content.
      • getAlgorithm

        public EncryptionAlgorithm getAlgorithm()
        Get the algorithm used for decryption.
        Returns:
        The algorithm used.