pub struct ScramServer { /* private fields */ }Expand description
Reusable server policy holding the credential and channel-binding context.
Implementations§
Source§impl ScramServer
impl ScramServer
Sourcepub fn new(password: &[u8], channel_binding: ServerChannelBinding) -> Self
pub fn new(password: &[u8], channel_binding: ServerChannelBinding) -> Self
Creates a server policy with a random 16-byte salt.
Sourcepub fn with_parameters(
password: &[u8],
salt: Vec<u8>,
iterations: u32,
channel_binding: ServerChannelBinding,
) -> Result<Self>
pub fn with_parameters( password: &[u8], salt: Vec<u8>, iterations: u32, channel_binding: ServerChannelBinding, ) -> Result<Self>
Creates a deterministic policy, primarily for persisted verifiers and tests.
§Errors
Rejects an iteration count below RFC 7677’s recommended minimum.
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<'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