Struct RevokedCertificate
pub struct RevokedCertificate<'a> {
pub user_certificate: BigUint,
pub revocation_date: ASN1Time,
/* private fields */
}crypto only.Fields§
§user_certificate: BigUintThe Serial number of the revoked certificate
revocation_date: ASN1TimeThe date on which the revocation occurred is specified.
Implementations§
§impl RevokedCertificate<'_>
impl RevokedCertificate<'_>
pub fn serial(&self) -> &BigUint
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn serial(&self) -> &BigUint
rustls or boring or acme) and crate feature rustls only.Return the serial number of the revoked certificate
pub fn extensions(&self) -> &[X509Extension<'_>]
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn extensions(&self) -> &[X509Extension<'_>]
rustls or boring or acme) and crate feature rustls only.Get the CRL entry extensions.
pub fn iter_extensions(&self) -> impl Iterator<Item = &X509Extension<'_>>
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn iter_extensions(&self) -> impl Iterator<Item = &X509Extension<'_>>
rustls or boring or acme) and crate feature rustls only.Returns an iterator over the CRL entry extensions
pub fn find_extension(&self, oid: &Oid<'_>) -> Option<&X509Extension<'_>>
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn find_extension(&self, oid: &Oid<'_>) -> Option<&X509Extension<'_>>
rustls or boring or acme) and crate feature rustls only.Searches for a CRL entry extension with the given Oid.
Note: if there are several extensions with the same Oid, the first one is returned.
pub fn extensions_map(
&self,
) -> Result<HashMap<Oid<'_>, &X509Extension<'_>>, X509Error>
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn extensions_map( &self, ) -> Result<HashMap<Oid<'_>, &X509Extension<'_>>, X509Error>
rustls or boring or acme) and crate feature rustls only.Builds and returns a map of CRL entry extensions.
If an extension is present twice, this will fail and return DuplicateExtensions.
pub fn raw_serial(&self) -> &[u8] ⓘ
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn raw_serial(&self) -> &[u8] ⓘ
rustls or boring or acme) and crate feature rustls only.Get the raw bytes of the certificate serial number
pub fn raw_serial_as_string(&self) -> String
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn raw_serial_as_string(&self) -> String
rustls or boring or acme) and crate feature rustls only.Get a formatted string of the certificate serial number, separated by ‘:’
pub fn reason_code(&self) -> Option<(bool, ReasonCode)>
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn reason_code(&self) -> Option<(bool, ReasonCode)>
rustls or boring or acme) and crate feature rustls only.Get the code identifying the reason for the revocation, if present
pub fn invalidity_date(&self) -> Option<(bool, ASN1Time)>
Available on (crate features rustls or boring or acme) and crate feature rustls only.
pub fn invalidity_date(&self) -> Option<(bool, ASN1Time)>
rustls or boring or acme) and crate feature rustls only.Get the invalidity date, if present
The invalidity date is the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid.
Trait Implementations§
§impl<'a> Clone for RevokedCertificate<'a>
impl<'a> Clone for RevokedCertificate<'a>
§fn clone(&self) -> RevokedCertificate<'a>
fn clone(&self) -> RevokedCertificate<'a>
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl<'a> Debug for RevokedCertificate<'a>
impl<'a> Debug for RevokedCertificate<'a>
§impl<'a> FromDer<'a, X509Error> for RevokedCertificate<'a>
impl<'a> FromDer<'a, X509Error> for RevokedCertificate<'a>
§impl<'a> PartialEq for RevokedCertificate<'a>
impl<'a> PartialEq for RevokedCertificate<'a>
impl<'a> StructuralPartialEq for RevokedCertificate<'a>
Auto Trait Implementations§
impl<'a> Freeze for RevokedCertificate<'a>
impl<'a> RefUnwindSafe for RevokedCertificate<'a>
impl<'a> Send for RevokedCertificate<'a>
impl<'a> Sync for RevokedCertificate<'a>
impl<'a> Unpin for RevokedCertificate<'a>
impl<'a> UnwindSafe for RevokedCertificate<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more