pub struct SingleCertAndKey(/* private fields */);
Expand description
Server certificate resolver which always resolves to the same certificate and key.
For use with ConfigBuilder::with_cert_resolver()
.
Trait Implementations§
Source§impl Debug for SingleCertAndKey
impl Debug for SingleCertAndKey
Source§impl From<CertifiedKey> for SingleCertAndKey
impl From<CertifiedKey> for SingleCertAndKey
Source§fn from(certified_key: CertifiedKey) -> Self
fn from(certified_key: CertifiedKey) -> Self
Converts to this type from the input type.
Source§impl ResolvesClientCert for SingleCertAndKey
impl ResolvesClientCert for SingleCertAndKey
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. Read more
Source§fn only_raw_public_keys(&self) -> bool
fn only_raw_public_keys(&self) -> bool
Return true if the client only supports raw public keys. Read more
Source§impl ResolvesServerCert for SingleCertAndKey
impl ResolvesServerCert for SingleCertAndKey
Source§fn resolve(&self, _client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
fn resolve(&self, _client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
Choose a certificate chain and matching key given simplified
ClientHello information. Read more
Source§fn only_raw_public_keys(&self) -> bool
fn only_raw_public_keys(&self) -> bool
Return true when the server only supports raw public keys.
Auto Trait Implementations§
impl Freeze for SingleCertAndKey
impl !RefUnwindSafe for SingleCertAndKey
impl Send for SingleCertAndKey
impl Sync for SingleCertAndKey
impl Unpin for SingleCertAndKey
impl !UnwindSafe for SingleCertAndKey
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