SymmetricKey.unwrapKeyAsync(final byte[] encryptedKey, final String algorithm) 方法

定义

Unwraps (decrypts) the specified encryped key material.

public ListenableFuture<byte[]> unwrapKeyAsync(final byte[] encryptedKey, final String algorithm)

参数

encryptedKey
final byte []

The encrypted key to decrypt

algorithm
final String

The algorithm to use, must be supplied

返回

ListenableFuture<byte[]>

A ListenableFuture containing the unwrapped key

例外

NoSuchAlgorithmException

the algorithm is not valid

替代

适用于