pub struct CertificateResolver(/* private fields */);Expand description
Answers every handshake from a slot that can be replaced underneath it.
Shared by both directions. A client certificate expires exactly as a server one does, so an outbound caller needs the same rotation story as a listener; giving each its own would mean one of them silently not reloading.
Implementations§
Source§impl CertificateResolver
impl CertificateResolver
Sourcepub fn leaf(&self) -> Option<CertificateDer<'static>>
pub fn leaf(&self) -> Option<CertificateDer<'static>>
The leaf selected for new handshakes, including only accepted rotations.
Trait Implementations§
Source§impl Debug for CertificateResolver
impl Debug for CertificateResolver
Source§impl ResolvesClientCert for CertificateResolver
impl ResolvesClientCert for CertificateResolver
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 CertificateResolver
impl ResolvesServerCert for CertificateResolver
Source§fn resolve(&self, _hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
fn resolve(&self, _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 CertificateResolver
impl !RefUnwindSafe for CertificateResolver
impl !UnwindSafe for CertificateResolver
impl Forget for CertificateResolver
impl Move for CertificateResolver
impl Send for CertificateResolver
impl Sync for CertificateResolver
impl Unpin for CertificateResolver
impl UnsafeUnpin for CertificateResolver
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