using Azaion.Missions.JwksMock.Services; namespace Azaion.Missions.JwksMock.Endpoints; public static class RotateKeyEndpoint { /// /// POST /rotate-key. Generates a new active ECDSA P-256 keypair, /// retires the previous active key for OldKeyGraceSeconds, returns /// the new kid. /// public static IResult Handle(KeyStore keys) { var newKey = keys.Rotate(); return Results.Json(new { kid = newKey.Kid }); } }