CreateAkpKeyOptions(String, AkpAlgorithm, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.