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). Replay / session
port slots default to None (opt in via the builders); 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.
Sourcepub fn with_session_revocation(self, port: Arc<dyn SessionRevocation>) -> Self
pub fn with_session_revocation(self, port: Arc<dyn SessionRevocation>) -> Self
Wire the M36 session-row liveness port.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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