WrapResult Class

  • java.lang.Object
    • com.azure.security.keyvault.keys.cryptography.models.WrapResult

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 KeyWrapResult holding the key wrap operation response details.

Method Summary

Modifier and Type Method and Description
KeyWrapAlgorithm 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:

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

getAlgorithm

public KeyWrapAlgorithm getAlgorithm()

Get the key wrap algorithm used to wrap the key content.

Returns:

The key wrap algorithm.

getEncryptedKey

public byte[] getEncryptedKey()

Get the encrypted key content.

Returns:

The encrypted key.

getKeyId

public String getKeyId()

Get the identifier of the key used to do encryption

Returns:

the key identifier

Applies to