pub struct PwnedPasswordClient { /* private fields */ }Expand description
HTTP range service. Its endpoint is trusted application configuration; requests contain only five uppercase SHA-1 characters, never the password.
Implementations§
Source§impl PwnedPasswordClient
impl PwnedPasswordClient
Sourcepub fn new(client: Client, range_api: Url) -> Self
pub fn new(client: Client, range_api: Url) -> Self
Use an application-owned range service and HTTP client.
Sourcepub async fn is_password_compromised(&self, password: &str) -> AuthResult<bool>
pub async fn is_password_compromised(&self, password: &str) -> AuthResult<bool>
Check the original UTF-8 password before password-hash normalization.
§Errors
Returns the published provider status or generic retry error when the response cannot be checked, including a malformed matching count.
Trait Implementations§
Source§impl Clone for PwnedPasswordClient
impl Clone for PwnedPasswordClient
Source§impl Debug for PwnedPasswordClient
impl Debug for PwnedPasswordClient
Auto Trait Implementations§
impl !RefUnwindSafe for PwnedPasswordClient
impl !UnwindSafe for PwnedPasswordClient
impl Freeze for PwnedPasswordClient
impl Send for PwnedPasswordClient
impl Sync for PwnedPasswordClient
impl Unpin for PwnedPasswordClient
impl UnsafeUnpin for PwnedPasswordClient
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