Skip to main content

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

System.String

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

System.String

JsonWebKeyPropertyNames.Curve Field

ECC Curve parameter (crv).

public const string Curve = "crv";

Field Value

System.String

JsonWebKeyPropertyNames.EllipticCurveX Field

ECC X Coordinate parameter (x).

public const string EllipticCurveX = "x";

Field Value

System.String

JsonWebKeyPropertyNames.EllipticCurveY Field

ECC Y Coordinate parameter (y).

public const string EllipticCurveY = "y";

Field Value

System.String

JsonWebKeyPropertyNames.Exponent Field

RSA Public Exponent parameter (e).

public const string Exponent = "e";

Field Value

System.String

JsonWebKeyPropertyNames.FirstCrtCoefficient Field

RSA First CRT Coefficient parameter (qi).

public const string FirstCrtCoefficient = "qi";

Field Value

System.String

JsonWebKeyPropertyNames.FirstFactorCrtExponent Field

RSA First Factor CRT Exponent parameter (dp).

public const string FirstFactorCrtExponent = "dp";

Field Value

System.String

JsonWebKeyPropertyNames.FirstPrimeFactor Field

RSA First Prime Factor parameter (p).

public const string FirstPrimeFactor = "p";

Field Value

System.String

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

System.String

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

System.String

JsonWebKeyPropertyNames.KeyValue Field

Symmetric Key Value parameter (k) - Used for oct (Octet Sequence) keys.

public const string KeyValue = "k";

Field Value

System.String

JsonWebKeyPropertyNames.Modulus Field

RSA Modulus parameter (n).

public const string Modulus = "n";

Field Value

System.String

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

System.String

JsonWebKeyPropertyNames.SecondFactorCrtExponent Field

RSA Second Factor CRT Exponent parameter (dq).

public const string SecondFactorCrtExponent = "dq";

Field Value

System.String

JsonWebKeyPropertyNames.SecondPrimeFactor Field

RSA Second Prime Factor parameter (q).

public const string SecondPrimeFactor = "q";

Field Value

System.String

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

System.String

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";

Field Value

System.String