JsonWebKey Constructors
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.
Overloads
JsonWebKey(IEnumerable<KeyOperation>) |
Initializes a new instance of the JsonWebKey class with the given key operations. |
JsonWebKey(Aes, IEnumerable<KeyOperation>) |
Initializes a new instance of the JsonWebKey class using type Oct. |
JsonWebKey(ECDsa, Boolean, IEnumerable<KeyOperation>) |
Initializes a new instance of the JsonWebKey class using type Ec. |
JsonWebKey(RSA, Boolean, IEnumerable<KeyOperation>) |
Initializes a new instance of the JsonWebKey class using type Rsa. |
JsonWebKey(IEnumerable<KeyOperation>)
- Source:
- JsonWebKey.cs
- Source:
- JsonWebKey.cs
Initializes a new instance of the JsonWebKey class with the given key operations.
public JsonWebKey (System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Keys.KeyOperation> keyOps);
new Azure.Security.KeyVault.Keys.JsonWebKey : seq<Azure.Security.KeyVault.Keys.KeyOperation> -> Azure.Security.KeyVault.Keys.JsonWebKey
Public Sub New (keyOps As IEnumerable(Of KeyOperation))
Parameters
- keyOps
- IEnumerable<KeyOperation>
A list of supported KeyOperation values. If null, no operations will be permitted and subsequent cryptography operations may fail.
Applies to
JsonWebKey(Aes, IEnumerable<KeyOperation>)
- Source:
- JsonWebKey.cs
- Source:
- JsonWebKey.cs
Initializes a new instance of the JsonWebKey class using type Oct.
public JsonWebKey (System.Security.Cryptography.Aes aesProvider, System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Keys.KeyOperation> keyOps = default);
new Azure.Security.KeyVault.Keys.JsonWebKey : System.Security.Cryptography.Aes * seq<Azure.Security.KeyVault.Keys.KeyOperation> -> Azure.Security.KeyVault.Keys.JsonWebKey
Public Sub New (aesProvider As Aes, Optional keyOps As IEnumerable(Of KeyOperation) = Nothing)
Parameters
- keyOps
- IEnumerable<KeyOperation>
Optional list of supported KeyOperation values. If null, the default for the key type is used, including: Encrypt, Decrypt, WrapKey, and UnwrapKey.
Exceptions
aesProvider
is null.
Applies to
JsonWebKey(ECDsa, Boolean, IEnumerable<KeyOperation>)
- Source:
- JsonWebKey.cs
- Source:
- JsonWebKey.cs
Initializes a new instance of the JsonWebKey class using type Ec.
public JsonWebKey (System.Security.Cryptography.ECDsa ecdsa, bool includePrivateParameters = false, System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Keys.KeyOperation> keyOps = default);
new Azure.Security.KeyVault.Keys.JsonWebKey : System.Security.Cryptography.ECDsa * bool * seq<Azure.Security.KeyVault.Keys.KeyOperation> -> Azure.Security.KeyVault.Keys.JsonWebKey
Public Sub New (ecdsa As ECDsa, Optional includePrivateParameters As Boolean = false, Optional keyOps As IEnumerable(Of KeyOperation) = Nothing)
Parameters
- includePrivateParameters
- Boolean
Whether to include the private key.
- keyOps
- IEnumerable<KeyOperation>
Optional list of supported KeyOperation values. If null, the default for the key type is used, including:
Sign, and Decrypt if includePrivateParameters
is true.
Exceptions
ecdsa
is null.
The elliptic curve name is invalid.
Applies to
JsonWebKey(RSA, Boolean, IEnumerable<KeyOperation>)
- Source:
- JsonWebKey.cs
- Source:
- JsonWebKey.cs
Initializes a new instance of the JsonWebKey class using type Rsa.
public JsonWebKey (System.Security.Cryptography.RSA rsaProvider, bool includePrivateParameters = false, System.Collections.Generic.IEnumerable<Azure.Security.KeyVault.Keys.KeyOperation> keyOps = default);
new Azure.Security.KeyVault.Keys.JsonWebKey : System.Security.Cryptography.RSA * bool * seq<Azure.Security.KeyVault.Keys.KeyOperation> -> Azure.Security.KeyVault.Keys.JsonWebKey
Public Sub New (rsaProvider As RSA, Optional includePrivateParameters As Boolean = false, Optional keyOps As IEnumerable(Of KeyOperation) = Nothing)
Parameters
- includePrivateParameters
- Boolean
Whether to include the private key.
- keyOps
- IEnumerable<KeyOperation>
Optional list of supported KeyOperation values. If null, the default for the key type is used, including:
Encrypt, Verify, and WrapKey;
and Decrypt, Sign, and UnwrapKey if includePrivateParameters
is true.
Exceptions
rsaProvider
is null.
Applies to
Azure SDK for .NET