JsonWebKey Constructors

Definition

Overloads

JsonWebKey()

Creates an instance of JsonWebKey

JsonWebKey(ECParameters)

Converts a ECParameters object to a WebKey of type EC.

JsonWebKey(Aes)

Converts an AES object to a WebKey of type Octet

JsonWebKey(RSAParameters)

Converts a RSAParameters object to a WebKey of type RSA.

JsonWebKey(ECDsa, Boolean)

Initializes a new instance with the key provided by the ECDsa object.

JsonWebKey(RSA, Boolean)

Converts a RSA object to a WebKey of type RSA.

JsonWebKey()

Creates an instance of JsonWebKey

[Newtonsoft.Json.JsonConstructor]
public JsonWebKey ();
Public Sub New ()
Attributes
Newtonsoft.Json.JsonConstructorAttribute

Applies to

JsonWebKey(ECParameters)

Converts a ECParameters object to a WebKey of type EC.

public JsonWebKey (Microsoft.Azure.KeyVault.WebKey.ECParameters ecParameters);
new Microsoft.Azure.KeyVault.WebKey.JsonWebKey : Microsoft.Azure.KeyVault.WebKey.ECParameters -> Microsoft.Azure.KeyVault.WebKey.JsonWebKey

Parameters

ecParameters
ECParameters

The EC object to convert

Applies to

JsonWebKey(Aes)

Converts an AES object to a WebKey of type Octet

public JsonWebKey (System.Security.Cryptography.Aes aesProvider);
new Microsoft.Azure.KeyVault.WebKey.JsonWebKey : System.Security.Cryptography.Aes -> Microsoft.Azure.KeyVault.WebKey.JsonWebKey
Public Sub New (aesProvider As Aes)

Parameters

aesProvider
System.Security.Cryptography.Aes

Applies to

JsonWebKey(RSAParameters)

Converts a RSAParameters object to a WebKey of type RSA.

public JsonWebKey (System.Security.Cryptography.RSAParameters rsaParameters);
new Microsoft.Azure.KeyVault.WebKey.JsonWebKey : System.Security.Cryptography.RSAParameters -> Microsoft.Azure.KeyVault.WebKey.JsonWebKey

Parameters

rsaParameters
System.Security.Cryptography.RSAParameters

The RSA object to convert

Applies to

JsonWebKey(ECDsa, Boolean)

Initializes a new instance with the key provided by the ECDsa object.

public JsonWebKey (System.Security.Cryptography.ECDsa ecsda, bool includePrivateParameters = false);
new Microsoft.Azure.KeyVault.WebKey.JsonWebKey : System.Security.Cryptography.ECDsa * bool -> Microsoft.Azure.KeyVault.WebKey.JsonWebKey
Public Sub New (ecsda As ECDsa, Optional includePrivateParameters As Boolean = false)

Parameters

ecsda
System.Security.Cryptography.ECDsa

The ECDsa object previously initialized with the desired key.

includePrivateParameters
System.Boolean

Tells if the instance must inclue private parameters. This requires the key in the ECDsa object to include private material and be marked as exportable.

Applies to

JsonWebKey(RSA, Boolean)

Converts a RSA object to a WebKey of type RSA.

public JsonWebKey (System.Security.Cryptography.RSA rsaProvider, bool includePrivateParameters = false);
new Microsoft.Azure.KeyVault.WebKey.JsonWebKey : System.Security.Cryptography.RSA * bool -> Microsoft.Azure.KeyVault.WebKey.JsonWebKey
Public Sub New (rsaProvider As RSA, Optional includePrivateParameters As Boolean = false)

Parameters

rsaProvider
System.Security.Cryptography.RSA

The RSA object to convert

includePrivateParameters
System.Boolean

True to include the RSA private key parameters

Applies to