Expand description
Bounded, transport-free review of one explicitly supplied compact JWT.
This module deliberately supports only compact JWS objects signed with ES256 and one explicitly supplied local P-256 public JWK. It never follows key URLs or trusts token-carried key material. Parsing, local policy consistency, local signature verification, and target acceptance are four separate states; this module performs no target request.
Structs§
- Es256
Local Public Key - One explicitly supplied local ES256 verification key.
- JwtEvaluation
Time - Caller-supplied local evaluation time. It is evidence about this process’s clock, not an observed target decision.
- JwtExternal
Activity - Network activity facts for the transport-free review.
- JwtLocal
Policy - Non-secret local policy. Expected values are kept private, wiped on drop,
and never included in the audit outcome or
Debugoutput. - JwtPolicy
Methodology - Value-free local methodology facts needed by strict saved reports and semantic comparison.
- JwtPolicy
Review Audit - Value-free outcome of one bounded local review.
- JwtTarget
Acceptance Runtime Input - Move-only sealed handoff from local JWT preparation into the sole target runtime. Callers can carry this value alongside the public target policy, but cannot separate credentials, the local ineligibility reason, or the opaque per-preparation binding.
- Prepared
JwtTarget Acceptance - Local review plus an optional sealed credential handoff for the target acceptance child. A selected but locally ineligible token produces the local audit and no credential handoff, so it can never reach transport.
- Secret
Compact Jwt - Move-only compact JWT bytes. The original token is wiped on drop and is
never serializable or printable through
Debug.
Enums§
- Es256
Public JwkError - Redaction-safe local public-JWK rejection.
- JwtClock
Assurance - Assurance attached to the local evaluation clock.
- JwtExternal
Operation Status - Closed status for network operations excluded from this local slice.
- JwtInput
Error - Redaction-safe compact-token input failure.
- JwtLocal
Signature Status - Signature relationship to the one explicitly supplied local public key.
- JwtParse
Rejection - Static reason a compact input was not parsed into the supported profile.
- JwtParsing
Status - Compact syntax/profile status.
- JwtPolicy
Error - Redaction-safe local policy construction failure.
- JwtPolicy
Status - Local policy relationship, independent of signature and target behavior.
- JwtPolicy
Violation - Value-free local policy inconsistency.
- JwtTarget
Acceptance Status - Target behavior state for this transport-free slice.
- JwtTarget
Control Preparation Error - Redaction-safe invariant failure while deriving the one invalid-signature control. This is a local implementation error, not a target observation.
Constants§
- ES256_
SIGNATURE_ BYTES - ES256 uses a fixed-width
R || Ssignature. - JWT_
POLICY_ REVIEW_ AUDIT_ SCHEMA - Stable schema identifier for the value-free audit outcome.
- JWT_
POLICY_ REVIEW_ POLICY_ ID - Stable identifier for the initial local JWT policy evaluator.
- MAX_
CLOCK_ SKEW_ SECONDS - Maximum allowed clock-skew declaration.
- MAX_
COMPACT_ JWT_ BYTES - Maximum accepted compact JWT bytes.
- MAX_
JWT_ CLAIMS_ BYTES - Maximum decoded claims bytes.
- MAX_
JWT_ HEADER_ BYTES - Maximum decoded protected-header bytes.
- MAX_
LOCAL_ PUBLIC_ JWK_ BYTES - Maximum accepted local public JWK bytes.
- MAX_
REQUIRED_ CLAIMS - Maximum required claim names in one policy.
Functions§
- review_
and_ prepare_ target_ acceptance - Reviews one compact token locally and, only when every selected local gate succeeds, derives a sealed invalid-signature control for the explicitly selected target-acceptance child.
- review_
compact_ jwt - Reviews one compact JWS without any network or filesystem activity.