Struct krill::daemon::ca::BgpSecCertificates
source · pub struct BgpSecCertificates(/* private fields */);
Expand description
The issued BGPSec certificates under a resource class in a CA.
Implementations§
source§impl BgpSecCertificates
impl BgpSecCertificates
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
sourcepub fn update(
&self,
definitions: &BgpSecDefinitions,
certified_key: &CertifiedKey,
config: &Config,
signer: &KrillSigner
) -> KrillResult<BgpSecCertificateUpdates>
pub fn update( &self, definitions: &BgpSecDefinitions, certified_key: &CertifiedKey, config: &Config, signer: &KrillSigner ) -> KrillResult<BgpSecCertificateUpdates>
Update issued BGPSec certificates
Will issue new BGPSec certificates for definitions using the resources of this certified key which did not yet exist.
Will remove any existing BGPSec certificates which:
- are no longer present in the definitions; or
- for which the certified key no longer holds the asn.
Note that we pass in ALL BGPSec definitions, including definitions that may only be eligible under another owning RC.
sourcepub fn renew(
&self,
certified_key: &CertifiedKey,
renew_threshold: Option<Time>,
issuance_timing: &IssuanceTimingConfig,
signer: &KrillSigner
) -> KrillResult<BgpSecCertificateUpdates>
pub fn renew( &self, certified_key: &CertifiedKey, renew_threshold: Option<Time>, issuance_timing: &IssuanceTimingConfig, signer: &KrillSigner ) -> KrillResult<BgpSecCertificateUpdates>
Re-new BGPSec certificates
Used to renew certificates which would expire, in which case the renew_threshold should be specified. Or, to re-issue all existing certificates during a key rollover activation of a new certified_key - in which case the renew_threshold is expected to be None, and the certified_key is expected to have changed.
sourcepub fn updated(&mut self, updates: BgpSecCertificateUpdates)
pub fn updated(&mut self, updates: BgpSecCertificateUpdates)
Applies updates from an event.
Trait Implementations§
source§impl Clone for BgpSecCertificates
impl Clone for BgpSecCertificates
source§fn clone(&self) -> BgpSecCertificates
fn clone(&self) -> BgpSecCertificates
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 BgpSecCertificates
impl Debug for BgpSecCertificates
source§impl Default for BgpSecCertificates
impl Default for BgpSecCertificates
source§fn default() -> BgpSecCertificates
fn default() -> BgpSecCertificates
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BgpSecCertificates
impl<'de> Deserialize<'de> for BgpSecCertificates
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BgpSecCertificates
impl PartialEq for BgpSecCertificates
source§fn eq(&self, other: &BgpSecCertificates) -> bool
fn eq(&self, other: &BgpSecCertificates) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BgpSecCertificates
impl Serialize for BgpSecCertificates
impl Eq for BgpSecCertificates
impl StructuralEq for BgpSecCertificates
impl StructuralPartialEq for BgpSecCertificates
Auto Trait Implementations§
impl RefUnwindSafe for BgpSecCertificates
impl Send for BgpSecCertificates
impl Sync for BgpSecCertificates
impl Unpin for BgpSecCertificates
impl UnwindSafe for BgpSecCertificates
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.