pub struct SingleRawPublicKeyResolver(/* private fields */);
Expand description
An exemplar ServerCredentialResolver
implementation that always resolves to a single
RFC 7250 raw public key.
Implementations§
Source§impl SingleRawPublicKeyResolver
impl SingleRawPublicKeyResolver
Sourcepub fn new(credentials: Credentials) -> Self
pub fn new(credentials: Credentials) -> Self
Create a new AlwaysResolvesServerRawPublicKeys
instance.
Trait Implementations§
Source§impl Debug for SingleRawPublicKeyResolver
impl Debug for SingleRawPublicKeyResolver
Source§impl ServerCredentialResolver for SingleRawPublicKeyResolver
impl ServerCredentialResolver for SingleRawPublicKeyResolver
Source§fn resolve(
&self,
client_hello: &ClientHello<'_>,
) -> Result<SelectedCredential, Error>
fn resolve( &self, client_hello: &ClientHello<'_>, ) -> Result<SelectedCredential, Error>
Choose a certificate chain and matching key given simplified ClientHello information. 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 SingleRawPublicKeyResolver
impl !RefUnwindSafe for SingleRawPublicKeyResolver
impl Send for SingleRawPublicKeyResolver
impl Sync for SingleRawPublicKeyResolver
impl Unpin for SingleRawPublicKeyResolver
impl !UnwindSafe for SingleRawPublicKeyResolver
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