pub struct DigestAuthenticator {
pub credentials: DigestCredentials,
pub enforce_qop: bool,
pub reject_md5: bool,
/* private fields */
}Expand description
Used to solve Digest authenticate challenges in 401 / 407 SIP responses
Fields§
§credentials: DigestCredentials§enforce_qop: boolRespond with qop Auth when a challenge does not contain qop field (RFC8760 Section 2.6). Is false by default
reject_md5: boolReject challenges with MD5 algorithm. Is false by default
Implementations§
Source§impl DigestAuthenticator
impl DigestAuthenticator
pub fn new(credentials: DigestCredentials) -> Self
Trait Implementations§
Source§impl ClientAuthenticator for DigestAuthenticator
impl ClientAuthenticator for DigestAuthenticator
type Error = DigestError
Modify a request’s header to add the required authorization Read more
Source§fn handle_rejection(
&mut self,
rejected_request: RequestParts<'_>,
reject_response: ResponseParts<'_>,
) -> Result<(), DigestError>
fn handle_rejection( &mut self, rejected_request: RequestParts<'_>, reject_response: ResponseParts<'_>, ) -> Result<(), DigestError>
Handle a rejection request Read more
Auto Trait Implementations§
impl Freeze for DigestAuthenticator
impl RefUnwindSafe for DigestAuthenticator
impl Send for DigestAuthenticator
impl Sync for DigestAuthenticator
impl Unpin for DigestAuthenticator
impl UnwindSafe for DigestAuthenticator
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