Struct webpki::OwnedCertRevocationList
source · pub struct OwnedCertRevocationList {
revoked_certs: HashMap<Vec<u8>, OwnedRevokedCert>,
issuer: Vec<u8>,
signed_data: OwnedSignedData,
}
Expand description
Owned representation of a RFC 52801 profile Certificate Revocation List (CRL).
Fields§
§revoked_certs: HashMap<Vec<u8>, OwnedRevokedCert>
A map of the revoked certificates contained in then CRL, keyed by the DER encoding of the revoked cert’s serial number.
issuer: Vec<u8>
§signed_data: OwnedSignedData
Trait Implementations§
source§impl CertRevocationList for OwnedCertRevocationList
impl CertRevocationList for OwnedCertRevocationList
source§fn find_serial(
&self,
serial: &[u8],
) -> Result<Option<BorrowedRevokedCert<'_>>, Error>
fn find_serial( &self, serial: &[u8], ) -> Result<Option<BorrowedRevokedCert<'_>>, Error>
Try to find a revoked certificate in the CRL by DER encoded serial number. This
may yield an error if the CRL has malformed revoked certificates.
source§fn verify_signature(
&self,
supported_sig_algs: &[&SignatureAlgorithm],
issuer_spki: &[u8],
) -> Result<(), Error>
fn verify_signature( &self, supported_sig_algs: &[&SignatureAlgorithm], issuer_spki: &[u8], ) -> Result<(), Error>
Verify the CRL signature using the issuer’s subject public key information (SPKI)
and a list of supported signature algorithms.
source§impl Clone for OwnedCertRevocationList
impl Clone for OwnedCertRevocationList
source§fn clone(&self) -> OwnedCertRevocationList
fn clone(&self) -> OwnedCertRevocationList
Returns a copy 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 moresource§impl Debug for OwnedCertRevocationList
impl Debug for OwnedCertRevocationList
impl Sealed for OwnedCertRevocationList
Auto Trait Implementations§
impl Freeze for OwnedCertRevocationList
impl RefUnwindSafe for OwnedCertRevocationList
impl Send for OwnedCertRevocationList
impl Sync for OwnedCertRevocationList
impl Unpin for OwnedCertRevocationList
impl UnwindSafe for OwnedCertRevocationList
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)