Class WrapResult
java.lang.Object
com.azure.security.keyvault.keys.cryptography.models.WrapResult
Represents the details of wrap operation result.
-
Constructor Summary
ConstructorDescriptionWrapResult
(byte[] encryptedKey, KeyWrapAlgorithm algorithm, String keyId) Creates the instance of KeyWrapResult holding the key wrap operation response details. -
Method Summary
Modifier and TypeMethodDescriptionGet the key wrap algorithm used to wrap the key content.byte[]
Get the encrypted key content.getKeyId()
Get the identifier of the key used to do encryption
-
Constructor Details
-
WrapResult
Creates the instance of KeyWrapResult holding the key wrap operation response details.- Parameters:
encryptedKey
- The unwrapped key content.algorithm
- The algorithm used to wrap the key content.keyId
- The identifier of the key usd for the key wrap operation.
-
-
Method Details
-
getEncryptedKey
public byte[] getEncryptedKey()Get the encrypted key content.- Returns:
- The encrypted key.
-
getAlgorithm
Get the key wrap algorithm used to wrap the key content.- Returns:
- The key wrap algorithm.
-
getKeyId
Get the identifier of the key used to do encryption- Returns:
- the key identifier
-