pub struct ServerIdentityPolicy { /* private fields */ }Expand description
A ValidationPolicy that checks whether the leaf certificate is authoritative
for a given hostname or IP address.
This policy is most commonly used to validate the leaf certificate presented by a server during a TLS handshake.
This policy implements the logic for service validation as specified by RFC 6125 (https://tools.ietf.org/search/rfc6125), which loosely speaking defines the common algorithm used for validating that an X.509 certificate is valid for a given service
Implementations§
Trait Implementations§
Source§impl ValidationPolicy for ServerIdentityPolicy
impl ValidationPolicy for ServerIdentityPolicy
Source§fn verifying_critical_extensions(&self) -> Vec<Oid<'static>>
fn verifying_critical_extensions(&self) -> Vec<Oid<'static>>
The X.509 extension types that this policy understands and enforces. Read more
Source§fn chain_meets_policy_requirements(
&self,
chain: &UnverifiedCertificateChain<'_>,
) -> PolicyEvaluationResult
fn chain_meets_policy_requirements( &self, chain: &UnverifiedCertificateChain<'_>, ) -> PolicyEvaluationResult
Called to determine whether a given
UnverifiedCertificateChain meets the requirements of this policy. Read moreAuto Trait Implementations§
impl Freeze for ServerIdentityPolicy
impl RefUnwindSafe for ServerIdentityPolicy
impl Send for ServerIdentityPolicy
impl Sync for ServerIdentityPolicy
impl Unpin for ServerIdentityPolicy
impl UnsafeUnpin for ServerIdentityPolicy
impl UnwindSafe for ServerIdentityPolicy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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