Class WrapResult
- java.lang.Object
-
- com.azure.security.keyvault.keys.cryptography.models.WrapResult
-
public final class WrapResult extends Object
Represents the details of wrap operation result.
-
-
Constructor Summary
Constructors Constructor Description WrapResult(byte[] encryptedKey, KeyWrapAlgorithm algorithm, String keyId)Creates the instance of KeyWrapResult holding the key wrap operation response details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyWrapAlgorithmgetAlgorithm()Get the key wrap algorithm used to wrap the key content.byte[]getEncryptedKey()Get the encrypted key content.StringgetKeyId()Get the identifier of the key used to do encryption
-
-
-
Constructor Detail
-
WrapResult
public WrapResult(byte[] encryptedKey, KeyWrapAlgorithm algorithm, String keyId)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 Detail
-
getEncryptedKey
public byte[] getEncryptedKey()
Get the encrypted key content.- Returns:
- The encrypted key.
-
getAlgorithm
public KeyWrapAlgorithm getAlgorithm()
Get the key wrap algorithm used to wrap the key content.- Returns:
- The key wrap algorithm.
-
getKeyId
public String getKeyId()
Get the identifier of the key used to do encryption- Returns:
- the key identifier
-
-