pub struct AlwaysResolvesClientRawPublicKeys(/* private fields */);展开描述
An exemplar ResolvesClientCert implementation that always resolves 到 一个 single
RFC 7250 raw 公钥.
实现§
Source§impl AlwaysResolvesClientRawPublicKeys
impl AlwaysResolvesClientRawPublicKeys
Sourcepub fn new(certified_key: Arc<CertifiedKey>) -> Self
pub fn new(certified_key: Arc<CertifiedKey>) -> Self
创建一个 new AlwaysResolvesClientRawPublicKeys instance.
Trait 实现§
Source§impl Clone for AlwaysResolvesClientRawPublicKeys
impl Clone for AlwaysResolvesClientRawPublicKeys
Source§fn clone(&self) -> AlwaysResolvesClientRawPublicKeys
fn clone(&self) -> AlwaysResolvesClientRawPublicKeys
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl ResolvesClientCert for AlwaysResolvesClientRawPublicKeys
impl ResolvesClientCert for AlwaysResolvesClientRawPublicKeys
Source§fn has_certs(&self) -> bool
fn has_certs(&self) -> bool
如果解析器已准备好提供身份,则返回 true
尝然这个函数叫 has_certs, it 返回 true
although only an RPK (Raw Public Key) 可用时也会返回 true,并非真正的证书
Source§fn resolve(
&self,
_root_hint_subjects: &[&[u8]],
_sigschemes: &[SignatureScheme],
) -> Option<Arc<CertifiedKey>>
fn resolve( &self, _root_hint_subjects: &[&[u8]], _sigschemes: &[SignatureScheme], ) -> Option<Arc<CertifiedKey>>
Resolve a client certificate chain/private key to use as the client’s
identity. 更多信息
Source§fn only_raw_public_keys(&self) -> bool
fn only_raw_public_keys(&self) -> bool
当客户端仅支持原始公钥时返回 true 更多信息
自动 Trait 实现§
impl Freeze for AlwaysResolvesClientRawPublicKeys
impl !RefUnwindSafe for AlwaysResolvesClientRawPublicKeys
impl Send for AlwaysResolvesClientRawPublicKeys
impl Sync for AlwaysResolvesClientRawPublicKeys
impl Unpin for AlwaysResolvesClientRawPublicKeys
impl UnsafeUnpin for AlwaysResolvesClientRawPublicKeys
impl !UnwindSafe for AlwaysResolvesClientRawPublicKeys
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. 更多信息