JsonWebKey Class
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.
A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. For more information, see JSON Web Key (JWK).
[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Security.KeyVault.Keys.JsonWebKeyConverter))]
public class JsonWebKey
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Security.KeyVault.Keys.JsonWebKeyConverter))>]
type JsonWebKey = class
Public Class JsonWebKey
- Inheritance
-
JsonWebKey
- Attributes
Constructors
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(IEnumerable<KeyOperation>) |
Initializes a new instance of the JsonWebKey class with the given key operations. |
JsonWebKey(RSA, Boolean, IEnumerable<KeyOperation>) |
Initializes a new instance of the JsonWebKey class using type Rsa. |
Properties
CurveName |
Gets the name of the elliptical curve. |
D |
Gets the RSA private exponent or EC private key. |
DP |
Gets the RSA private key parameter. |
DQ |
Gets the RSA private key parameter. |
E |
Gets RSA public exponent. |
Id |
Gets the identifier of the key. This is not limited to a Uri. |
K |
Gets the symmetric key. |
KeyOps |
Gets a list of KeyOperation values supported by this key. |
KeyType |
Gets the KeyType for this JsonWebKey. |
N |
Gets the RSA modulus. |
P |
Gets the RSA secret prime. |
Q |
Gets the RSA secret prime. |
QI |
Gets the RSA private key parameter. |
T |
Gets the protected key used with "Bring Your Own Key". |
X |
Gets the X coordinate of the elliptic curve point. |
Y |
Gets the Y coordinate for the elliptic curve point. |
Methods
ToAes() |
Converts this JsonWebKey of type Oct or OctHsm to an Aes object. |
ToECDsa(Boolean) |
Converts this JsonWebKey of type Ec or EcHsm to an ECDsa object. |
ToRSA(Boolean) |
Converts this JsonWebKey of type Rsa or RsaHsm to an RSA object. |
Applies to
Azure SDK for .NET