Language

CreateAkpKeyOptions(String, AkpAlgorithm, Boolean) Constructor

Definition

Initializes a new instance of the CreateAkpKeyOptions class.

public CreateAkpKeyOptions(string name, Azure.Security.KeyVault.Keys.AkpAlgorithm algorithm, bool hardwareProtected = false);
new Azure.Security.KeyVault.Keys.CreateAkpKeyOptions : string * Azure.Security.KeyVault.Keys.AkpAlgorithm * bool -> Azure.Security.KeyVault.Keys.CreateAkpKeyOptions
Public Sub New (name As String, algorithm As AkpAlgorithm, Optional hardwareProtected As Boolean = false)

Parameters

name
String

The name of the key to create.

algorithm
AkpAlgorithm

The algorithm identifier for the Algorithm Key Pair (AKP) key. See AkpAlgorithm for possible values.

hardwareProtected
Boolean

True to create a hardware-protected key in a hardware security module (HSM). The default is false to create a software key.

Exceptions

name is empty.

name is null, or algorithm is not set.

Applies to