using System.Text.Json.Serialization;
namespace ModelContextProtocol.TestOAuthServer;
///
/// Represents a JSON Web Key.
///
internal sealed class JsonWebKey
{
///
/// Gets or sets the key type (e.g., "RSA").
///
[JsonPropertyName("kty")]
public required string KeyType { get; init; }
///
/// Gets or sets the intended use of the key (e.g., "sig" for signature).
///
[JsonPropertyName("use")]
public required string Use { get; init; }
///
/// Gets or sets the key ID.
///
[JsonPropertyName("kid")]
public required string KeyId { get; init; }
///
/// Gets or sets the algorithm intended for use with the key (e.g., "RS256").
///
[JsonPropertyName("alg")]
public required string Algorithm { get; init; }
///
/// Gets or sets the RSA exponent (base64url-encoded).
///
[JsonPropertyName("e")]
public required string Exponent { get; init; }
///
/// Gets or sets the RSA modulus (base64url-encoded).
///
[JsonPropertyName("n")]
public required string Modulus { get; init; }
}