pub struct NoClientAuth;展开描述
关闭客户端身份验证。
In contrast 到 using
WebPkiClientVerifier::builder(roots).allow_unauthenticated().build(), the NoClientAuth
ClientCertVerifier will not offer client authentication at all, vs offering but not
requiring it.
Trait 实现§
Source§impl ClientCertVerifier for NoClientAuth
impl ClientCertVerifier for NoClientAuth
Source§fn offer_client_auth(&self) -> bool
fn offer_client_auth(&self) -> bool
Returns
true 到 enable the server 到 request 一个 client certificate 并
false 到 skip requesting 一个 client certificate. Defaults 到 true.Source§fn root_hint_subjects(&self) -> &[DistinguishedName]
fn root_hint_subjects(&self) -> &[DistinguishedName]
Returns the
DistinguishedName subjects that the server will hint 到 clients 到
identify acceptable authentication trust anchors. 更多信息Source§fn verify_client_cert(
&self,
_end_entity: &CertificateDer<'_>,
_intermediates: &[CertificateDer<'_>],
_now: UnixTime,
) -> Result<ClientCertVerified, Error>
fn verify_client_cert( &self, _end_entity: &CertificateDer<'_>, _intermediates: &[CertificateDer<'_>], _now: UnixTime, ) -> Result<ClientCertVerified, Error>
验证 end-entity certificate
end_entity is valid, acceptable,
并 chains 到 at least one of the trust anchors trusted by
this verifier. 更多信息Source§fn verify_tls12_signature(
&self,
_message: &[u8],
_cert: &CertificateDer<'_>,
_dss: &DigitallySignedStruct,
) -> Result<HandshakeSignatureValid, Error>
fn verify_tls12_signature( &self, _message: &[u8], _cert: &CertificateDer<'_>, _dss: &DigitallySignedStruct, ) -> Result<HandshakeSignatureValid, Error>
验证 签名 allegedly by the given client certificate. 更多信息
Source§fn verify_tls13_signature(
&self,
_message: &[u8],
_cert: &CertificateDer<'_>,
_dss: &DigitallySignedStruct,
) -> Result<HandshakeSignatureValid, Error>
fn verify_tls13_signature( &self, _message: &[u8], _cert: &CertificateDer<'_>, _dss: &DigitallySignedStruct, ) -> Result<HandshakeSignatureValid, Error>
验证 签名 allegedly by the given client certificate. 更多信息
Source§fn supported_verify_schemes(&self) -> Vec<SignatureScheme>
fn supported_verify_schemes(&self) -> Vec<SignatureScheme>
Source§fn client_auth_mandatory(&self) -> bool
fn client_auth_mandatory(&self) -> bool
Return
true 到 require 一个 client certificate 并 false 到 make
client authentication optional.
Defaults 到 self.offer_client_auth().Source§fn requires_raw_public_keys(&self) -> bool
fn requires_raw_public_keys(&self) -> bool
返回此验证器是否要求
in RFC 7250.
自动 Trait 实现§
impl Freeze for NoClientAuth
impl RefUnwindSafe for NoClientAuth
impl Send for NoClientAuth
impl Sync for NoClientAuth
impl Unpin for NoClientAuth
impl UnsafeUnpin for NoClientAuth
impl UnwindSafe for NoClientAuth
Blanket 实现§
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 从 an owned value. 更多信息