UnwrapResult Class

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

public final class UnwrapResult

Represents the details of key unwrap operation result.

Constructor Summary

Constructor Description
UnwrapResult(byte[] key, KeyWrapAlgorithm algorithm, String keyId)

Creates the instance of KeyUnwrap Result holding the unwrapped key content.

Method Summary

Modifier and Type Method and Description
KeyWrapAlgorithm getAlgorithm()

Get the algorithm used for key wrap operation.

byte[] getKey()

Get the unwrapped key content.

String getKeyId()

Get the identifier of the key used for the key wrap encryption

Methods inherited from java.lang.Object

Constructor Details

UnwrapResult

public UnwrapResult(byte[] key, KeyWrapAlgorithm algorithm, String keyId)

Creates the instance of KeyUnwrap Result holding the unwrapped key content.

Parameters:

key - The unwrapped key content.
algorithm - The algorithm used for the operation
keyId - The id of key used for the operation

Method Details

getAlgorithm

public KeyWrapAlgorithm getAlgorithm()

Get the algorithm used for key wrap operation.

Returns:

The encryption algorithm used.

getKey

public byte[] getKey()

Get the unwrapped key content.

Returns:

The unwrapped key content.

getKeyId

public String getKeyId()

Get the identifier of the key used for the key wrap encryption

Returns:

the key identifier

Applies to