Struct routinator::engine::CaCert
source · pub struct CaCert { /* private fields */ }
Expand description
A CA certificate plus references to all its parents.
Implementations§
source§impl CaCert
impl CaCert
sourcepub fn root(
cert: ResourceCert,
uri: TalUri,
tal: usize
) -> Result<Arc<Self>, Failed>
pub fn root( cert: ResourceCert, uri: TalUri, tal: usize ) -> Result<Arc<Self>, Failed>
Creates a new CA cert for a trust anchor.
sourcepub fn chain(
issuer: &Arc<Self>,
uri: Rsync,
cert: ResourceCert,
max_depth: usize
) -> Result<Arc<Self>, Failed>
pub fn chain( issuer: &Arc<Self>, uri: Rsync, cert: ResourceCert, max_depth: usize ) -> Result<Arc<Self>, Failed>
Creates a new CA cert for an issued CA.
sourcepub fn check_loop(&self, cert: &Cert) -> Result<(), Failed>
pub fn check_loop(&self, cert: &Cert) -> Result<(), Failed>
Checks whether a child cert has appeared in the chain already.
sourcepub fn cert(&self) -> &ResourceCert
pub fn cert(&self) -> &ResourceCert
Returns a reference to the resource certificate.
sourcepub fn uri(&self) -> &TalUri
pub fn uri(&self) -> &TalUri
Returns a reference to the certificate’s URI.
Note that this really is the URI of the certificate itself despite
the type of TalUri
. This type is used because TAL certificates
(which are CA certificates) are published with an HTTPS URI rather
than an rsync URI.
sourcepub fn ca_repository(&self) -> &Rsync
pub fn ca_repository(&self) -> &Rsync
Returns a reference the caRepository URI of the certificate.
sourcepub fn rpki_manifest(&self) -> &Rsync
pub fn rpki_manifest(&self) -> &Rsync
Returns a reference to the rpkiManifest URI of the certificate.
sourcepub fn rpki_notify(&self) -> Option<&Https>
pub fn rpki_notify(&self) -> Option<&Https>
Returns a reference to the rpkiNotify URI of the certificate.
sourcepub fn combined_validity(&self) -> Validity
pub fn combined_validity(&self) -> Validity
Returns the combined validaty of the whole CA.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CaCert
impl Send for CaCert
impl Sync for CaCert
impl Unpin for CaCert
impl UnwindSafe for CaCert
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