pub struct AlwaysResolvesClientRawPublicKeys(/* private fields */);
Expand description
An exemplar ClientCredentialResolver
implementation that always resolves to a single
RFC 7250 raw public key.
Implementations§
Source§impl AlwaysResolvesClientRawPublicKeys
impl AlwaysResolvesClientRawPublicKeys
Sourcepub fn new(credentials: Credentials) -> Self
pub fn new(credentials: Credentials) -> Self
Create a new AlwaysResolvesClientRawPublicKeys
instance.
Trait Implementations§
Source§impl ClientCredentialResolver for AlwaysResolvesClientRawPublicKeys
impl ClientCredentialResolver for AlwaysResolvesClientRawPublicKeys
Source§fn resolve(&self, request: &CredentialRequest<'_>) -> Option<SelectedCredential>
fn resolve(&self, request: &CredentialRequest<'_>) -> Option<SelectedCredential>
Resolve a client certificate chain/private key to use as the client’s identity. Read more
Source§fn supported_certificate_types(&self) -> &'static [CertificateType]
fn supported_certificate_types(&self) -> &'static [CertificateType]
Returns which
CertificateType
s this resolver supports. Read moreAuto 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