pub struct VerifyConfig { /* private fields */ }Implementations§
Source§impl VerifyConfig
impl VerifyConfig
Sourcepub fn access_token(
issuer: impl Into<String>,
audience: impl Into<String>,
) -> Self
pub fn access_token( issuer: impl Into<String>, audience: impl Into<String>, ) -> Self
Build the canonical access-token config: at+jwt typ, EdDSA-only
algorithm whitelist, 8 KB token size cap (M34). All revocation
port slots default to None; callers opt in via the
with_replay_defense / with_session_revocation /
with_epoch_revocation builders.
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 (or a future profile-specific
constructor) so the EdDSA pin is the default, not an override.
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. Call site (PCS chat-auth /
pas-external SDK) constructs the substrate adapter (KVRocks,
in-memory test stand-in) and hands the Arc<dyn ...> here.
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.
Sourcepub fn with_epoch_revocation(self, port: Arc<dyn EpochRevocation>) -> Self
pub fn with_epoch_revocation(self, port: Arc<dyn EpochRevocation>) -> Self
Wire the sv-port per-account epoch revocation. Implementations
internally compose their cache + fetcher (e.g. chat-auth’s
existing SessionVersionCache + SessionVersionFetcher pair) —
the engine boundary sees a single port.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more