[−][src]Struct rpki::crl::TbsCertList
The payload of a certificate revocation list.
This type is generic over the list of revoked certificates.
Methods
impl<C> TbsCertList<C>
[src]
pub fn new(
signature: SignatureAlgorithm,
issuer: Name,
this_update: Time,
next_update: Time,
revoked_certs: C,
authority_key_id: KeyIdentifier,
crl_number: Serial
) -> Self
[src]
signature: SignatureAlgorithm,
issuer: Name,
this_update: Time,
next_update: Time,
revoked_certs: C,
authority_key_id: KeyIdentifier,
crl_number: Serial
) -> Self
Creates a new value from the necessary data.
pub fn into_crl<S: Signer>(
self,
signer: &S,
key: &S::KeyId
) -> Result<Crl, SigningError<S::Error>> where
C: IntoIterator<Item = CrlEntry>,
<C as IntoIterator>::IntoIter: Clone,
[src]
self,
signer: &S,
key: &S::KeyId
) -> Result<Crl, SigningError<S::Error>> where
C: IntoIterator<Item = CrlEntry>,
<C as IntoIterator>::IntoIter: Clone,
Converts the value into a signed CRL.
impl<C> TbsCertList<C>
[src]
pub fn signature(&self) -> SignatureAlgorithm
[src]
Returns the algorithm used by the issuer to sign the CRL.
pub fn set_signature(&mut self, signature: SignatureAlgorithm)
[src]
Sets the signature algorithm.
pub fn issuer(&self) -> &Name
[src]
Returns a reference to the issuer name of the CRL.
pub fn set_issuer(&mut self, issuer: Name)
[src]
Sets the issuer name.
pub fn this_update(&self) -> Time
[src]
Returns the update time of this CRL.
pub fn set_this_update(&mut self, this_update: Time)
[src]
Sets the update time of this CRL.
pub fn next_update(&self) -> Time
[src]
Returns the time of next update if present.
pub fn is_stale(&self) -> bool
[src]
Returns whether the CRL’s nextUpdate time has passed.
pub fn set_next_update(&mut self, next_update: Time)
[src]
Sets the time of next update.
pub fn revoked_certs(&self) -> &C
[src]
Returns a reference to the list of revoked certificates.
pub fn revoked_certs_mut(&mut self) -> &mut C
[src]
Returns a mutable reference to the list of revoked certificates.
pub fn set_revoked_certs(&mut self, revoked_certs: C)
[src]
Sets the list of revoked certificates.
pub fn authority_key_identifier(&self) -> &KeyIdentifier
[src]
Returns a reference to the authority key identifier if present.
pub fn set_authority_key_identifier(&mut self, id: KeyIdentifier)
[src]
Sets the authority key identifer.
pub fn crl_number(&self) -> Serial
[src]
Returns the CRL number.
pub fn set_crl_number(&mut self, crl_number: Serial)
[src]
Sets the CRL number.
impl TbsCertList<RevokedCertificates>
[src]
pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>
[src]
Takes a value from the beginning of a encoded constructed value.
pub fn encode_ref<'a>(&'a self) -> impl Values + 'a
[src]
Returns a value encoder for a reference to this value.
Trait Implementations
impl AsRef<TbsCertList<RevokedCertificates>> for Crl
[src]
fn as_ref(&self) -> &TbsCertList<RevokedCertificates>
[src]
impl<C> From<TbsCertList<C>> for TbsCertList<RevokedCertificates> where
C: IntoIterator<Item = CrlEntry>,
<C as IntoIterator>::IntoIter: Clone,
[src]
C: IntoIterator<Item = CrlEntry>,
<C as IntoIterator>::IntoIter: Clone,
fn from(list: TbsCertList<C>) -> Self
[src]
impl<C: Clone> Clone for TbsCertList<C>
[src]
fn clone(&self) -> TbsCertList<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug> Debug for TbsCertList<C>
[src]
Auto Trait Implementations
impl<C> Send for TbsCertList<C> where
C: Send,
C: Send,
impl<C> Sync for TbsCertList<C> where
C: Sync,
C: Sync,
impl<C> Unpin for TbsCertList<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for TbsCertList<C> where
C: UnwindSafe,
C: UnwindSafe,
impl<C> RefUnwindSafe for TbsCertList<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,