pub struct MultiKeyVerifierBuilder { /* private fields */ }Expand description
Builder for constructing a MultiKeyVerifier with rotation support
Implementations§
Source§impl MultiKeyVerifierBuilder
impl MultiKeyVerifierBuilder
Sourcepub fn new(issuer: impl Into<String>, audience: impl Into<String>) -> Self
pub fn new(issuer: impl Into<String>, audience: impl Into<String>) -> Self
Create a new builder
Sourcepub fn with_primary_key(
self,
key: VerifyingKey,
key_id: impl Into<String>,
) -> Self
pub fn with_primary_key( self, key: VerifyingKey, key_id: impl Into<String>, ) -> Self
Add a primary key
Sourcepub fn with_secondary_key(
self,
key: VerifyingKey,
key_id: impl Into<String>,
grace_period: Duration,
) -> Self
pub fn with_secondary_key( self, key: VerifyingKey, key_id: impl Into<String>, grace_period: Duration, ) -> Self
Add a secondary key with grace period
Sourcepub fn with_origin_validation(self) -> Self
pub fn with_origin_validation(self) -> Self
Require origin validation
Sourcepub fn with_cleanup_interval(self, interval: Duration) -> Self
pub fn with_cleanup_interval(self, interval: Duration) -> Self
Set cleanup interval
Sourcepub fn build(self) -> MultiKeyVerifier
pub fn build(self) -> MultiKeyVerifier
Build the verifier
Auto Trait Implementations§
impl Freeze for MultiKeyVerifierBuilder
impl RefUnwindSafe for MultiKeyVerifierBuilder
impl Send for MultiKeyVerifierBuilder
impl Sync for MultiKeyVerifierBuilder
impl Unpin for MultiKeyVerifierBuilder
impl UnsafeUnpin for MultiKeyVerifierBuilder
impl UnwindSafe for MultiKeyVerifierBuilder
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