pub struct ScramServerSession { /* private fields */ }Expand description
One server-side SCRAM-SHA-256 exchange.
Implementations§
Source§impl ScramServerSession
impl ScramServerSession
pub fn begin( verifier: ScramVerifier, client_first_bare: impl Into<String>, client_nonce: &str, server_nonce: &str, channel_binding_policy: ScramChannelBindingPolicy, expected_channel_binding: Vec<u8>, ) -> Result<Self, SecurityHardeningError>
pub fn server_first_message(&self) -> &str
pub fn finish( self, client_final_without_proof: &str, client_proof_base64: &str, ) -> Result<String, SecurityHardeningError>
Auto Trait Implementations§
impl Freeze for ScramServerSession
impl RefUnwindSafe for ScramServerSession
impl Send for ScramServerSession
impl Sync for ScramServerSession
impl Unpin for ScramServerSession
impl UnsafeUnpin for ScramServerSession
impl UnwindSafe for ScramServerSession
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