pub struct NoRevocation;Expand description
A no-op revocation checker that always reports certificates as not revoked.
Use this when:
- Running in embedded / offline environments with no revocation infrastructure
- Revocation is enforced at a higher layer
- In tests and development environments
§Security note
NoRevocation does not consult CRLs or OCSP. A revoked certificate
will pass validation. Only use this when your threat model permits
unenforced revocation (e.g., closed networks, short-lived certificates,
hardware attestation where issuance itself is the control).
Trait Implementations§
Source§impl Clone for NoRevocation
impl Clone for NoRevocation
Source§fn clone(&self) -> NoRevocation
fn clone(&self) -> NoRevocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoRevocation
Source§impl Debug for NoRevocation
impl Debug for NoRevocation
Source§impl Default for NoRevocation
impl Default for NoRevocation
Source§fn default() -> NoRevocation
fn default() -> NoRevocation
Returns the “default value” for a type. Read more
impl Eq for NoRevocation
Source§impl Hash for NoRevocation
impl Hash for NoRevocation
Source§impl PartialEq for NoRevocation
impl PartialEq for NoRevocation
Source§fn eq(&self, other: &NoRevocation) -> bool
fn eq(&self, other: &NoRevocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RevocationChecker for NoRevocation
impl RevocationChecker for NoRevocation
Source§fn check_revocation(
&self,
_cert: &Certificate,
_issuer: &Certificate,
) -> Result<()>
fn check_revocation( &self, _cert: &Certificate, _issuer: &Certificate, ) -> Result<()>
Check whether
cert has been revoked. Read moreSource§fn check_revocation_against_anchor(
&self,
_cert: &Certificate,
_anchor: &TrustAnchor,
) -> Result<()>
fn check_revocation_against_anchor( &self, _cert: &Certificate, _anchor: &TrustAnchor, ) -> Result<()>
Check whether
cert (issued directly by a trust anchor) has been revoked. Read moreimpl StructuralPartialEq for NoRevocation
Auto Trait Implementations§
impl Freeze for NoRevocation
impl RefUnwindSafe for NoRevocation
impl Send for NoRevocation
impl Sync for NoRevocation
impl Unpin for NoRevocation
impl UnsafeUnpin for NoRevocation
impl UnwindSafe for NoRevocation
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