Share via


CryptographyModelFactory.WrapResult(String, Byte[], KeyWrapAlgorithm) Method

Definition

Initializes a new instance of the WrapResult class for mocking purposes.

public static Azure.Security.KeyVault.Keys.Cryptography.WrapResult WrapResult (string keyId = default, byte[] key = default, Azure.Security.KeyVault.Keys.Cryptography.KeyWrapAlgorithm algorithm = default);
static member WrapResult : string * byte[] * Azure.Security.KeyVault.Keys.Cryptography.KeyWrapAlgorithm -> Azure.Security.KeyVault.Keys.Cryptography.WrapResult
Public Shared Function WrapResult (Optional keyId As String = Nothing, Optional key As Byte() = Nothing, Optional algorithm As KeyWrapAlgorithm = Nothing) As WrapResult

Parameters

keyId
String

Sets the KeyId property.

key
Byte[]

Sets the EncryptedKey property.

algorithm
KeyWrapAlgorithm

Sets the Algorithm property.

Returns

A new instance of the WrapResult class for mocking purposes.

Applies to