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,
impl<P> CrlBuilder<P>where
P: Profile,
Sourcepub fn new(issuer: &Certificate, crl_number: CrlNumber) -> Result<Self>
pub fn new(issuer: &Certificate, crl_number: CrlNumber) -> Result<Self>
Create a CrlBuilder with the given issuer and the given monotonic CrlNumber
Sourcepub fn new_with_this_update(
issuer: &Certificate,
crl_number: CrlNumber,
this_update: Time,
) -> Result<Self>
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.
Sourcepub fn with_next_update(self, next_update: Option<Time>) -> Self
pub fn with_next_update(self, next_update: Option<Time>) -> Self
Make the CRL valid until the given next_update
Sourcepub fn with_certificates<I>(self, revoked: I) -> Selfwhere
I: Iterator<Item = RevokedCert<P>>,
pub fn with_certificates<I>(self, revoked: I) -> Selfwhere
I: Iterator<Item = RevokedCert<P>>,
Add certificates to the revocation list
Trait Implementations§
Source§impl<P> Builder for CrlBuilder<P>where
P: Profile,
impl<P> Builder for CrlBuilder<P>where
P: Profile,
Source§type Output = CertificateList<P>
type Output = CertificateList<P>
Type built by this builder
Source§fn finalize<S>(&mut self, cert_signer: &S) -> Result<Vec<u8>>
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>
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>where
S: Signer<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
fn build<S, Signature>(self, signer: &S) -> Result<Self::Output>where
S: Signer<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
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>where
S: RandomizedSigner<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
R: CryptoRng + ?Sized,
fn build_with_rng<S, Signature, R>(
self,
signer: &S,
rng: &mut R,
) -> Result<Self::Output>where
S: RandomizedSigner<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
R: CryptoRng + ?Sized,
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>where
TbsCertList<P>: RefUnwindSafe,
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>where
TbsCertList<P>: UnsafeUnpin,
impl<P> UnwindSafe for CrlBuilder<P>where
TbsCertList<P>: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsyncBuilder for Twhere
T: Builder,
impl<T> AsyncBuilder for Twhere
T: Builder,
Source§fn assemble<S>(
self,
signature: BitString,
signer: &S,
) -> Result<<T as AsyncBuilder>::Output, Error>
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>
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>where
S: AsyncSigner<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
async fn build_async<S, Signature>(self, signer: &S) -> Result<Self::Output>where
S: AsyncSigner<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
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>where
S: AsyncRandomizedSigner<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
R: CryptoRng + ?Sized,
async fn build_with_rng_async<S, Signature, R>(
self,
signer: &S,
rng: &mut R,
) -> Result<Self::Output>where
S: AsyncRandomizedSigner<Signature> + Keypair + DynSignatureAlgorithmIdentifier,
S::VerifyingKey: EncodePublicKey,
Signature: SignatureBitStringEncoding,
R: CryptoRng + ?Sized,
Run the object through the signer and build it. Read more
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