pub struct ScramClientSession { /* private fields */ }Expand description
Client half of one SCRAM-SHA-256 exchange. The password is zeroized when the exchange finishes or is dropped.
Implementations§
Source§impl ScramClientSession
impl ScramClientSession
pub fn begin( username: &str, password: impl Into<String>, client_nonce: &str, ) -> Result<Self, SecurityHardeningError>
pub fn client_first_bare(&self) -> &str
pub fn respond( &mut self, server_first: &str, ) -> Result<(String, String), SecurityHardeningError>
pub fn verify_server_final( &self, server_final: &str, ) -> Result<(), SecurityHardeningError>
Auto Trait Implementations§
impl Freeze for ScramClientSession
impl RefUnwindSafe for ScramClientSession
impl Send for ScramClientSession
impl Sync for ScramClientSession
impl Unpin for ScramClientSession
impl UnsafeUnpin for ScramClientSession
impl UnwindSafe for ScramClientSession
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> 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