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() |
Initializes a new instance of the JSONWebKey class. |
JSONWebKey(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, IList<String>, String) |
Initializes a new instance of the JSONWebKey class. |
JSONWebKey()
Initializes a new instance of the JSONWebKey class.
public JSONWebKey ();
Public Sub New ()
Applies to
JSONWebKey(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, IList<String>, String)
Initializes a new instance of the JSONWebKey class.
public JSONWebKey (string alg, string kid, string kty, string use, string crv = default, string d = default, string dp = default, string dq = default, string e = default, string k = default, string n = default, string p = default, string q = default, string qi = default, string x = default, System.Collections.Generic.IList<string> x5C = default, string y = default);
new Microsoft.Azure.Management.Attestation.Models.JSONWebKey : string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * System.Collections.Generic.IList<string> * string -> Microsoft.Azure.Management.Attestation.Models.JSONWebKey
Public Sub New (alg As String, kid As String, kty As String, use As String, Optional crv As String = Nothing, Optional d As String = Nothing, Optional dp As String = Nothing, Optional dq As String = Nothing, Optional e As String = Nothing, Optional k As String = Nothing, Optional n As String = Nothing, Optional p As String = Nothing, Optional q As String = Nothing, Optional qi As String = Nothing, Optional x As String = Nothing, Optional x5C As IList(Of String) = Nothing, Optional y As String = Nothing)
Parameters
- alg
- String
The "alg" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA "JSON Web Signature and Encryption Algorithms" registry established by [JWA] or be a value that contains a Collision- Resistant Name.
- kid
- String
The "kid" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the "kid" value is unspecified. When "kid" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct "kid" values. (One example in which different keys might use the same "kid" value is if they have different "kty" (key type) values but are considered to be equivalent alternatives by the application using them.) The "kid" value is a case-sensitive string.
- kty
- String
The "kty" (key type) parameter identifies the cryptographic algorithm family used with the key, such as "RSA" or "EC". "kty" values should either be registered in the IANA "JSON Web Key Types" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The "kty" value is a case-sensitive string.
- use
- String
Use ("public key use") identifies the intended use of the public key. The "use" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly "sig" (signature) or "enc" (encryption).
- crv
- String
The "crv" (curve) parameter identifies the curve type
- d
- String
RSA private exponent or ECC private key
- dp
- String
RSA Private Key Parameter
- dq
- String
RSA Private Key Parameter
- e
- String
RSA public exponent, in Base64
- k
- String
Symmetric key
- n
- String
RSA modulus, in Base64
- p
- String
RSA secret prime
- q
- String
RSA secret prime, with p < q
- qi
- String
RSA Private Key Parameter
- x
- String
X coordinate for the Elliptic Curve point
The "x5c" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.
- y
- String
Y coordinate for the Elliptic Curve point