pub struct ScramServer { /* private fields */ }Expand description
Server-side SCRAM-SHA-256 state machine. One per client handshake.
Implementations§
Source§impl ScramServer
impl ScramServer
Sourcepub fn start(
verifier: ScramVerifier,
client_first: &str,
server_nonce: &str,
) -> Result<(Self, String), String>
pub fn start( verifier: ScramVerifier, client_first: &str, server_nonce: &str, ) -> Result<(Self, String), String>
Begin the exchange from the client’s first message (the
SASLInitialResponse payload, e.g. n,,n=,r=<clientnonce>).
server_nonce must be a fresh random token. Returns the
server-first message to send back (AuthenticationSASLContinue).
Auto Trait Implementations§
impl Freeze for ScramServer
impl RefUnwindSafe for ScramServer
impl Send for ScramServer
impl Sync for ScramServer
impl Unpin for ScramServer
impl UnsafeUnpin for ScramServer
impl UnwindSafe for ScramServer
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
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