Class DecryptResult
java.lang.Object
com.azure.security.keyvault.keys.cryptography.models.DecryptResult
Represents the details of decrypt operation result.
-
Constructor Summary
ConstructorDescriptionDecryptResult
(byte[] plaintext, EncryptionAlgorithm algorithm, String keyId) Creates the instance of Decrypt Result holding decrypted content. -
Method Summary
Modifier and TypeMethodDescriptionGet the algorithm used for decryption.getKeyId()
Get the identifier of the key used for the decryption operationbyte[]
Get the encrypted content.
-
Constructor Details
-
DecryptResult
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
-
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
Get the algorithm used for decryption.- Returns:
- The algorithm used.
-