pub struct NoClientAuth;Expand description
Turns off client authentication.
In contrast to using
WebPkiClientVerifier::builder(roots).allow_unauthenticated().build(), the NoClientAuth
ClientVerifier will not offer client authentication at all, vs offering but not
requiring it.
Trait Implementations§
Source§impl ClientVerifier for NoClientAuth
impl ClientVerifier for NoClientAuth
Source§fn verify_identity(
&self,
_identity: &ClientIdentity<'_>,
) -> Result<PeerVerified, Error>
fn verify_identity( &self, _identity: &ClientIdentity<'_>, ) -> Result<PeerVerified, Error>
Verify the client’s identity. Read more
Source§fn verify_tls12_signature(
&self,
_input: &SignatureVerificationInput<'_>,
) -> Result<HandshakeSignatureValid, Error>
fn verify_tls12_signature( &self, _input: &SignatureVerificationInput<'_>, ) -> Result<HandshakeSignatureValid, Error>
Verify a signature allegedly by the given client certificate. Read more
Source§fn verify_tls13_signature(
&self,
_input: &SignatureVerificationInput<'_>,
) -> Result<HandshakeSignatureValid, Error>
fn verify_tls13_signature( &self, _input: &SignatureVerificationInput<'_>, ) -> Result<HandshakeSignatureValid, Error>
Verify a signature allegedly by the given client certificate. Read more
Source§fn root_hint_subjects(&self) -> Arc<[DistinguishedName]>
fn root_hint_subjects(&self) -> Arc<[DistinguishedName]>
Returns the
DistinguishedName subjects that the server will hint to clients to
identify acceptable authentication trust anchors. Read moreSource§fn offer_client_auth(&self) -> bool
fn offer_client_auth(&self) -> bool
Returns
true to enable the server to request a client certificate and
false to skip requesting a client certificate. Defaults to true.Source§fn supported_verify_schemes(&self) -> Vec<SignatureScheme>
fn supported_verify_schemes(&self) -> Vec<SignatureScheme>
Return the list of SignatureSchemes that this verifier will handle,
in
verify_tls12_signature and verify_tls13_signature calls. Read moreSource§fn client_auth_mandatory(&self) -> bool
fn client_auth_mandatory(&self) -> bool
Return
true to require a client certificate and false to make
client authentication optional.
Defaults to self.offer_client_auth().Source§fn supported_certificate_types(&self) -> &'static [CertificateType]
fn supported_certificate_types(&self) -> &'static [CertificateType]
Returns which
CertificateTypes this verifier supports. Read moreAuto Trait Implementations§
impl Freeze for NoClientAuth
impl RefUnwindSafe for NoClientAuth
impl Send for NoClientAuth
impl Sync for NoClientAuth
impl Unpin for NoClientAuth
impl UnwindSafe for NoClientAuth
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