JWT#
JWT is covered under Token Domain, but this page highlights the hardening and interoperability APIs.
Highlights:
SymmetricJwtwithHS256/HS384/HS512.AsymmetricJwtwithRS*andES*.Structured verification results via
verifyResult()/decodeResult().Header/claim hardening with
JwtValidationOptionsand expected/required claims models.decodeWithAnyKeyResult()/verifyWithAnyKeyResult()for rotation-aware verification metadata.AsymmetricJwt::decodeFromJwksResult()/verifyFromJwksResult()for JWKS-kid verification.
Result Object Fields#
JwtVerificationResult provides:
verifiedclaimsheadersmatchedKeyIdusedFallbackKeyexpirednotBeforeViolationalgorithm
Use result APIs when token rejection behavior needs to branch by reason (expired vs signature mismatch, etc.).
JWKS/JWK Notes#
Token\\Jwt\\Jwks supports:
export public PEM keys to JWK/JWKS
resolve a JWK by
kidimport RSA/EC JWK public keys back to PEM
With AsymmetricJwt, token kid is required for JWKS verification flows.