Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

CrlBuilder

Struct CrlBuilder 

Source
pub struct CrlBuilder<P = Rfc5280>
where P: Profile,
{ /* private fields */ }
Expand description

X.509 CRL builder

Implementations§

Source§

impl<P> CrlBuilder<P>
where P: Profile,

Source

pub fn new(issuer: &Certificate, crl_number: CrlNumber) -> Result<Self>

Create a CrlBuilder with the given issuer and the given monotonic CrlNumber

Source

pub fn new_with_this_update( issuer: &Certificate, crl_number: CrlNumber, this_update: Time, ) -> Result<Self>

Create a CrlBuilder with the given issuer, a given monotonic CrlNumber, and valid from the given this_update start validity date.

Source

pub fn with_next_update(self, next_update: Option<Time>) -> Self

Make the CRL valid until the given next_update

Source

pub fn with_certificates<I>(self, revoked: I) -> Self
where I: Iterator<Item = RevokedCert<P>>,

Add certificates to the revocation list

Trait Implementations§

Source§

impl<P> Builder for CrlBuilder<P>
where P: Profile,

Source§

type Output = CertificateList<P>

Type built by this builder
Source§

fn finalize<S>(&mut self, cert_signer: &S) -> Result<Vec<u8>>

Finalize and return a serialization of the object for signature.
Source§

fn assemble<S>(self, signature: BitString, _signer: &S) -> Result<Self::Output>

Assemble the final object from signature.
Source§

fn build<S, Signature>(self, signer: &S) -> Result<Self::Output>

Run the object through the signer and build it. Read more
Source§

fn build_with_rng<S, Signature, R>( self, signer: &S, rng: &mut R, ) -> Result<Self::Output>

Run the object through the signer and build it. Read more

Auto Trait Implementations§

§

impl<P> Freeze for CrlBuilder<P>
where TbsCertList<P>: Freeze,

§

impl<P> RefUnwindSafe for CrlBuilder<P>

§

impl<P> Send for CrlBuilder<P>
where TbsCertList<P>: Send,

§

impl<P> Sync for CrlBuilder<P>
where TbsCertList<P>: Sync,

§

impl<P> Unpin for CrlBuilder<P>
where TbsCertList<P>: Unpin,

§

impl<P> UnsafeUnpin for CrlBuilder<P>

§

impl<P> UnwindSafe for CrlBuilder<P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsyncBuilder for T
where T: Builder,

Source§

type Output = <T as Builder>::Output

Type built by this builder
Source§

fn assemble<S>( self, signature: BitString, signer: &S, ) -> Result<<T as AsyncBuilder>::Output, Error>

Assemble the final object from signature.
Source§

fn finalize<S>(&mut self, signer: &S) -> Result<Vec<u8>, Error>

Finalize and return a serialization of the object for signature.
Source§

async fn build_async<S, Signature>(self, signer: &S) -> Result<Self::Output>

Run the object through the signer and build it. Read more
Source§

async fn build_with_rng_async<S, Signature, R>( self, signer: &S, rng: &mut R, ) -> Result<Self::Output>

Run the object through the signer and build it. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.