Struct winauth::windows::NtlmSspiBuilder
source · pub struct NtlmSspiBuilder { /* private fields */ }
Expand description
Builder for NtlmSspi
which provides configuration for it
Implementations§
source§impl NtlmSspiBuilder
impl NtlmSspiBuilder
pub fn new() -> NtlmSspiBuilder
sourcepub fn outbound(self) -> NtlmSspiBuilder
pub fn outbound(self) -> NtlmSspiBuilder
Outbound Mode = Client Mode (authenticate against a server)
sourcepub fn inbound(self) -> NtlmSspiBuilder
pub fn inbound(self) -> NtlmSspiBuilder
Inbound Mode = Server Mode (accept authentication from a client)
sourcepub fn target_spn(self, spn: &str) -> NtlmSspiBuilder
pub fn target_spn(self, spn: &str) -> NtlmSspiBuilder
Set a target SPN. This requires a client to specify that it intends to identify against this SPN. This limits replay attacks against the same server/service, since the SPN has to match.
sourcepub fn channel_bindings(self, data: &[u8]) -> NtlmSspiBuilder
pub fn channel_bindings(self, data: &[u8]) -> NtlmSspiBuilder
Set a channel binding. This limits client requests to the same channel. This means e.g. that the authentication can only be successful over the same TLS connection.
pub fn build(self) -> Result<NtlmSspi, Error>
Auto Trait Implementations§
impl Freeze for NtlmSspiBuilder
impl RefUnwindSafe for NtlmSspiBuilder
impl Send for NtlmSspiBuilder
impl Sync for NtlmSspiBuilder
impl Unpin for NtlmSspiBuilder
impl UnwindSafe for NtlmSspiBuilder
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