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 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 !RefUnwindSafe for AlwaysResolvesClientRawPublicKeys
impl !UnwindSafe for AlwaysResolvesClientRawPublicKeys
impl Freeze for AlwaysResolvesClientRawPublicKeys
impl Send for AlwaysResolvesClientRawPublicKeys
impl Sync for AlwaysResolvesClientRawPublicKeys
impl Unpin for AlwaysResolvesClientRawPublicKeys
impl UnsafeUnpin 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