WrapResult Class
- java.
lang. Object - com.
azure. security. keyvault. keys. cryptography. models. WrapResult
- com.
public final class WrapResult
Represents the details of wrap operation result.
Constructor Summary
Constructor | Description |
---|---|
WrapResult(byte[] encryptedKey, KeyWrapAlgorithm algorithm, String keyId) |
Creates the instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
Key |
getAlgorithm()
Get the key wrap algorithm used to wrap the key content. |
byte[] |
getEncryptedKey()
Get the encrypted key content. |
String |
getKeyId()
Get the identifier of the key used to do encryption |
Methods inherited from java.lang.Object
Constructor Details
WrapResult
public WrapResult(byte[] encryptedKey, KeyWrapAlgorithm algorithm, String keyId)
Creates the instance of KeyWrapResult holding the key wrap operation response details.
Parameters:
Method Details
getAlgorithm
public KeyWrapAlgorithm getAlgorithm()
Get the key wrap algorithm used to wrap the key content.
Returns:
getEncryptedKey
public byte[] getEncryptedKey()
Get the encrypted key content.
Returns:
getKeyId
public String getKeyId()
Get the identifier of the key used to do encryption
Returns:
Applies to
Azure SDK for Java