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