pub enum Algorithm {
EdDSA,
}Expand description
Sealed JWS signature algorithm whitelist (Phase 7 §6.8 — structural M51/M52/M54).
Only EdDSA exists. Consumer attempts to construct Algorithm::HS256
or any other variant fail at compile time (variant not found),
making M51/M52/M54 enforcement structural rather than lint-based.
jsonwebtoken::Algorithm is no longer re-exported — crates/shared/ppoppo-token
owns the algorithm vocabulary.
Adding a new variant (e.g., for OIDC interop in Phase 10) is a deliberate
spec change — the matrix M02/M06 rows must be revisited and the negative
regression in tests/jwt_negative.rs reinstated to cover the cfg-vs-header
SSOT invariant.
Variants§
EdDSA
EdDSA over Ed25519 — RFC 9068 access-token profile.
Trait Implementations§
Source§impl FromStr for Algorithm
impl FromStr for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more