Class DecryptResult
- java.lang.Object
-
- com.azure.security.keyvault.keys.cryptography.models.DecryptResult
-
public final class DecryptResult extends Object
Represents the details of decrypt operation result.
-
-
Constructor Summary
Constructors Constructor Description DecryptResult(byte[] plaintext, EncryptionAlgorithm algorithm, String keyId)Creates the instance of Decrypt Result holding decrypted content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionAlgorithmgetAlgorithm()Get the algorithm used for decryption.StringgetKeyId()Get the identifier of the key used for the decryption operationbyte[]getPlainText()Get the encrypted content.
-
-
-
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.
-
-