SecureWrapResult Class

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

public final class SecureWrapResult

Represents the details of a secure key wrap operation result.

Constructor Summary

Constructor Description
SecureWrapResult(byte[] encryptedKey, SecureKeyWrapAlgorithm algorithm, String keyId)

Creates the instance of SecureWrapResult holding the secure key wrap operation response details.

Method Summary

Modifier and Type Method and Description
SecureKeyWrapAlgorithm getAlgorithm()

Get the algorithm used to wrap the key content.

byte[] getEncryptedKey()

Get the encrypted key content.

String getKeyId()

Get the identifier of the key used for the secure key wrap operation.

Methods inherited from java.lang.Object

Constructor Details

SecureWrapResult

public SecureWrapResult(byte[] encryptedKey, SecureKeyWrapAlgorithm algorithm, String keyId)

Creates the instance of SecureWrapResult holding the secure key wrap operation response details.

Parameters:

encryptedKey - The encrypted key content.
algorithm - The algorithm used to wrap the key content.
keyId - The identifier of the key used for the secure key wrap operation.

Method Details

getAlgorithm

public SecureKeyWrapAlgorithm getAlgorithm()

Get the algorithm used to wrap the key content.

Returns:

The secure 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 for the secure key wrap operation.

Returns:

The key identifier.

Applies to