JsonWebKeyPropertyNames Class
Abblix.Jwt
Abblix.Jwt
JsonWebKeyPropertyNames Class
JSON property names used in the JSON serialization of a JWK as defined in RFC 7517 Section 4 and RFC 7518 Section 6. These are the wire-level names; consumers normally interact with the strongly-typed properties on JsonWebKey and its subclasses.
public static class JsonWebKeyPropertyNames
Inheritance System.Object → JsonWebKeyPropertyNames
Fields
JsonWebKeyPropertyNames.Algorithm Field
"alg" - Algorithm. Identifies the JWA algorithm intended for use with the key. Optional per RFC 7517 Section 4.4; when present it constrains how the key may be used.
public const string Algorithm = "alg";
Field Value
JsonWebKeyPropertyNames.Certificates Field
"x5c" - X.509 Certificate Chain. Contains a chain of one or more base64-encoded PKIX certificates (RFC 5280) associating the key with an X.509 identity.
public const string Certificates = "x5c";
Field Value
JsonWebKeyPropertyNames.Curve Field
ECC Curve parameter (crv).
public const string Curve = "crv";
Field Value
JsonWebKeyPropertyNames.EllipticCurveX Field
ECC X Coordinate parameter (x).
public const string EllipticCurveX = "x";
Field Value
JsonWebKeyPropertyNames.EllipticCurveY Field
ECC Y Coordinate parameter (y).
public const string EllipticCurveY = "y";
Field Value
JsonWebKeyPropertyNames.Exponent Field
RSA Public Exponent parameter (e).
public const string Exponent = "e";
Field Value
JsonWebKeyPropertyNames.FirstCrtCoefficient Field
RSA First CRT Coefficient parameter (qi).
public const string FirstCrtCoefficient = "qi";
Field Value
JsonWebKeyPropertyNames.FirstFactorCrtExponent Field
RSA First Factor CRT Exponent parameter (dp).
public const string FirstFactorCrtExponent = "dp";
Field Value
JsonWebKeyPropertyNames.FirstPrimeFactor Field
RSA First Prime Factor parameter (p).
public const string FirstPrimeFactor = "p";
Field Value
JsonWebKeyPropertyNames.KeyId Field
"kid" - Key ID. Lets producers and consumers pick a specific key from a JWK Set when several keys share the same algorithm.
public const string KeyId = "kid";
Field Value
JsonWebKeyPropertyNames.KeyType Field
"kty" - Key Type. Identifies the cryptographic family (e.g., "RSA", "EC", "oct"). REQUIRED on every JWK (RFC 7517 Section 4.1).
public const string KeyType = "kty";
Field Value
JsonWebKeyPropertyNames.KeyValue Field
Symmetric Key Value parameter (k) - Used for oct (Octet Sequence) keys.
public const string KeyValue = "k";
Field Value
JsonWebKeyPropertyNames.Modulus Field
RSA Modulus parameter (n).
public const string Modulus = "n";
Field Value
JsonWebKeyPropertyNames.PrivateExponent Field
RSA or ECC Private Exponent parameter (d). For RSA: Private Exponent. For ECC: ECC Private Key.
public const string PrivateExponent = "d";
Field Value
JsonWebKeyPropertyNames.SecondFactorCrtExponent Field
RSA Second Factor CRT Exponent parameter (dq).
public const string SecondFactorCrtExponent = "dq";
Field Value
JsonWebKeyPropertyNames.SecondPrimeFactor Field
RSA Second Prime Factor parameter (q).
public const string SecondPrimeFactor = "q";
Field Value
JsonWebKeyPropertyNames.Thumbprint Field
"x5t" - X.509 Certificate SHA-1 Thumbprint. A base64url-encoded SHA-1 digest of the DER encoding of an X.509 certificate (RFC 7517 Section 4.8).
public const string Thumbprint = "x5t";
Field Value
JsonWebKeyPropertyNames.Usage Field
"use" - Public Key Use. Declares whether the key is meant for signing ("sig") or encryption ("enc"). See PublicKeyUsages.
public const string Usage = "use";