pub struct VerifyConfig { /* private fields */ }Implementations§
Source§impl VerifyConfig
impl VerifyConfig
Sourcepub fn access_token(
issuer: impl Into<String>,
audience: impl Into<String>,
epoch: EpochEnforcement,
) -> Self
pub fn access_token( issuer: impl Into<String>, audience: impl Into<String>, epoch: EpochEnforcement, ) -> Self
Canonical access-token config: at+jwt typ, sealed-vocabulary
algorithm whitelist (Algorithm::ALL — every alg PAS recognises;
EdDSA-only today), 8 KB token size cap (M34). The replay port
slot defaults to None (opt in via the builder); the sv
epoch stance is required — there is no silent default.
Sourcepub fn with_algorithms(self, algorithms: Vec<Algorithm>) -> Self
pub fn with_algorithms(self, algorithms: Vec<Algorithm>) -> Self
Override the algorithm whitelist. Test-only escape hatch — production
callers MUST go through access_token so the EdDSA pin is the default.
Sourcepub fn with_replay_defense(self, port: Arc<dyn ReplayDefense>) -> Self
pub fn with_replay_defense(self, port: Arc<dyn ReplayDefense>) -> Self
Wire the M35 jti replay defense port.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Auto Trait Implementations§
impl !RefUnwindSafe for VerifyConfig
impl !UnwindSafe for VerifyConfig
impl Freeze for VerifyConfig
impl Send for VerifyConfig
impl Sync for VerifyConfig
impl Unpin for VerifyConfig
impl UnsafeUnpin for VerifyConfig
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