Struct AlwaysResolvesClientRawPublicKeys
pub struct AlwaysResolvesClientRawPublicKeys(/* private fields */);Available on crate feature
tls only.Expand description
An exemplar ResolvesClientCert implementation that always resolves to a single
RFC 7250 raw public key.
Implementations§
§impl AlwaysResolvesClientRawPublicKeys
impl AlwaysResolvesClientRawPublicKeys
pub fn new(
certified_key: Arc<CertifiedKey>,
) -> AlwaysResolvesClientRawPublicKeys
pub fn new( certified_key: Arc<CertifiedKey>, ) -> AlwaysResolvesClientRawPublicKeys
Create a new AlwaysResolvesClientRawPublicKeys instance.
Trait Implementations§
§impl Clone for AlwaysResolvesClientRawPublicKeys
impl Clone for AlwaysResolvesClientRawPublicKeys
§fn clone(&self) -> AlwaysResolvesClientRawPublicKeys
fn clone(&self) -> AlwaysResolvesClientRawPublicKeys
Returns a duplicate 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 more§impl Debug for AlwaysResolvesClientRawPublicKeys
impl Debug for AlwaysResolvesClientRawPublicKeys
§impl ResolvesClientCert for AlwaysResolvesClientRawPublicKeys
impl ResolvesClientCert for AlwaysResolvesClientRawPublicKeys
§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.
§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
§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more