KeyVaultKey.decryptAsync(byte[] ciphertext, byte[] iv, byte[] authenticationData, byte[] authenticationTag, String algorithm) 方法

定义

Decrypts the specified cipher text. Note that not all algorithms require, or support, all parameters.

public ListenableFuture<byte[]> decryptAsync(byte[] ciphertext, byte[] iv, byte[] authenticationData, byte[] authenticationTag, String algorithm)

参数

ciphertext
byte []

The cipher text to decrypt

iv
byte []

The initialization vector (optional with some algorithms)

authenticationData
byte []

Additional authentication data (optional with some algorithms)

authenticationTag
byte []

The authentication tag from the encrypt operation (optional with some algorithms)

algorithm
String

The encryption algorithm to use, must be supplied

返回

ListenableFuture<byte[]>

A ListenableFuture containing the plain text

例外

NoSuchAlgorithmException

the algorithm is not valid

替代

适用于