Struct rustls::client::AlwaysResolvesClientRawPublicKeys
source · pub struct AlwaysResolvesClientRawPublicKeys(/* private fields */);
Expand description
An exemplar ResolvesClientCert
implementation that always resolves to a single
RFC 7250 raw public key.
Implementations§
source§impl AlwaysResolvesClientRawPublicKeys
impl AlwaysResolvesClientRawPublicKeys
sourcepub fn new(certified_key: Arc<CertifiedKey>) -> Self
pub fn new(certified_key: Arc<CertifiedKey>) -> Self
Create a new AlwaysResolvesClientRawPublicKeys
instance.
Trait Implementations§
source§impl Clone for AlwaysResolvesClientRawPublicKeys
impl Clone for AlwaysResolvesClientRawPublicKeys
source§fn clone(&self) -> AlwaysResolvesClientRawPublicKeys
fn clone(&self) -> AlwaysResolvesClientRawPublicKeys
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ResolvesClientCert for AlwaysResolvesClientRawPublicKeys
impl ResolvesClientCert for AlwaysResolvesClientRawPublicKeys
source§fn has_certs(&self) -> bool
fn has_certs(&self) -> bool
Returns true if the resolver is ready to present an identity.
Even though the function is called has_certs
, it returns true
although only an RPK (Raw Public Key) is available, not an actual certificate.
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
Auto Trait Implementations§
impl Freeze for AlwaysResolvesClientRawPublicKeys
impl !RefUnwindSafe for AlwaysResolvesClientRawPublicKeys
impl Send for AlwaysResolvesClientRawPublicKeys
impl Sync for AlwaysResolvesClientRawPublicKeys
impl Unpin for AlwaysResolvesClientRawPublicKeys
impl !UnwindSafe for AlwaysResolvesClientRawPublicKeys
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)