pub struct KeyProvider { /* private fields */ }Expand description
The key provider as the gateway uses it: it recognizes a key, finds the account a key belongs to, and makes and removes the accounts behind personal keys.
Implementations§
Source§impl KeyProvider
impl KeyProvider
Sourcepub fn new(
authenticator: Arc<dyn Authenticator>,
directory: Arc<dyn Directory>,
accounts: Arc<dyn Accounts>,
) -> Self
pub fn new( authenticator: Arc<dyn Authenticator>, directory: Arc<dyn Directory>, accounts: Arc<dyn Accounts>, ) -> Self
The key provider authenticator, whose accounts directory finds and accounts keeps.
Sourcepub fn with_lifetime(self, seconds: Option<f64>) -> Self
pub fn with_lifetime(self, seconds: Option<f64>) -> Self
Sets how long a personal key lives when its maker names no expiry, in seconds (the
record’s key_ttl; 0 means until revoked). Default: 90 days.
Sourcepub fn with_use_precision(self, seconds: Option<f64>) -> Self
pub fn with_use_precision(self, seconds: Option<f64>) -> Self
Sets how closely a key’s last use is kept, in seconds (the access cache’s lifetime, the
record’s access_cache_ttl). Default: 5.
Trait Implementations§
Source§impl Clone for KeyProvider
impl Clone for KeyProvider
Auto Trait Implementations§
impl !RefUnwindSafe for KeyProvider
impl !UnwindSafe for KeyProvider
impl Freeze for KeyProvider
impl Send for KeyProvider
impl Sync for KeyProvider
impl Unpin for KeyProvider
impl UnsafeUnpin for KeyProvider
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.