DecryptResult Class

  • java.lang.Object
    • com.azure.security.keyvault.keys.cryptography.models.DecryptResult

public final class DecryptResult

Represents the details of decrypt operation result.

Constructor Summary

Constructor Description
DecryptResult(byte[] plaintext, EncryptionAlgorithm algorithm, String keyId)

Creates the instance of Decrypt Result holding decrypted content.

Method Summary

Modifier and Type Method and Description
EncryptionAlgorithm getAlgorithm()

Get the algorithm used for decryption.

String getKeyId()

Get the identifier of the key used for the decryption operation

byte[] getPlainText()

Get the encrypted content.

Methods inherited from java.lang.Object

Constructor Details

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 Details

getAlgorithm

public EncryptionAlgorithm getAlgorithm()

Get the algorithm used for decryption.

Returns:

The algorithm used.

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.

Applies to