pub struct KerberosConfigBuilder { /* private fields */ }Expand description
Builder for KerberosConfig.
Created via KerberosConfig::builder().
Implementations§
Source§impl KerberosConfigBuilder
impl KerberosConfigBuilder
Sourcepub fn keytab_path(self, path: impl Into<String>) -> Self
pub fn keytab_path(self, path: impl Into<String>) -> Self
Set the path to the keytab file.
Sourcepub fn add_kdc(self, addr: impl Into<String>) -> Self
pub fn add_kdc(self, addr: impl Into<String>) -> Self
Append a KDC address (e.g. "kdc.example.com:88").
Sourcepub fn max_clock_skew_secs(self, secs: u64) -> Self
pub fn max_clock_skew_secs(self, secs: u64) -> Self
Set the maximum allowed clock skew in seconds (default: 300).
Sourcepub fn allow_delegation(self, allow: bool) -> Self
pub fn allow_delegation(self, allow: bool) -> Self
Enable or disable ticket delegation (default: false).
Sourcepub fn replay_cache_max_entries(self, max: usize) -> Self
pub fn replay_cache_max_entries(self, max: usize) -> Self
Set the maximum replay-cache size (default: 100 000).
Sourcepub fn build(self) -> KerberosConfig
pub fn build(self) -> KerberosConfig
Consume the builder and return the finished KerberosConfig.
Auto Trait Implementations§
impl Freeze for KerberosConfigBuilder
impl RefUnwindSafe for KerberosConfigBuilder
impl Send for KerberosConfigBuilder
impl Sync for KerberosConfigBuilder
impl Unpin for KerberosConfigBuilder
impl UnsafeUnpin for KerberosConfigBuilder
impl UnwindSafe for KerberosConfigBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more