Struct krill::daemon::ca::ChildDetails
source · pub struct ChildDetails { /* private fields */ }
Expand description
Contains information about a child CA needed by a parent CertAuth.
Note that the actual [IssuedCert] corresponding to the KeyIdentifier and ResourceClassName are kept in the parent’s [ResourceClass].
Implementations§
source§impl ChildDetails
impl ChildDetails
pub fn new(id_cert: IdCertInfo, resources: ResourceSet) -> Self
pub fn is_suspended(&self) -> bool
pub fn suspend(&mut self)
pub fn unsuspend(&mut self)
pub fn id_cert(&self) -> &IdCertInfo
pub fn set_id_cert(&mut self, id_cert: IdCertInfo)
pub fn resources(&self) -> &ResourceSet
pub fn set_resources(&mut self, resources: ResourceSet)
pub fn add_mapping( &mut self, name_in_parent: ResourceClassName, name_for_child: ResourceClassName )
pub fn issued(&self, parent_rcn: &ResourceClassName) -> Vec<KeyIdentifier>
pub fn is_issued(&self, ki: &KeyIdentifier) -> bool
pub fn add_issue_response( &mut self, parent_rcn: ResourceClassName, ki: KeyIdentifier )
pub fn add_revoke_response(&mut self, ki: KeyIdentifier)
sourcepub fn verify_key_allowed(
&self,
ki: &KeyIdentifier,
parent_rcn: &ResourceClassName
) -> KrillResult<()>
pub fn verify_key_allowed( &self, ki: &KeyIdentifier, parent_rcn: &ResourceClassName ) -> KrillResult<()>
Returns an error in case the key is already in use in another class.
Trait Implementations§
source§impl Clone for ChildDetails
impl Clone for ChildDetails
source§fn clone(&self) -> ChildDetails
fn clone(&self) -> ChildDetails
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 ChildDetails
impl Debug for ChildDetails
source§impl<'de> Deserialize<'de> for ChildDetails
impl<'de> Deserialize<'de> for ChildDetails
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 From<ChildDetails> for ChildCaInfo
impl From<ChildDetails> for ChildCaInfo
source§fn from(details: ChildDetails) -> Self
fn from(details: ChildDetails) -> Self
Converts to this type from the input type.
source§impl PartialEq for ChildDetails
impl PartialEq for ChildDetails
source§fn eq(&self, other: &ChildDetails) -> bool
fn eq(&self, other: &ChildDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChildDetails
impl Serialize for ChildDetails
impl Eq for ChildDetails
impl StructuralEq for ChildDetails
impl StructuralPartialEq for ChildDetails
Auto Trait Implementations§
impl RefUnwindSafe for ChildDetails
impl Send for ChildDetails
impl Sync for ChildDetails
impl Unpin for ChildDetails
impl UnwindSafe for ChildDetails
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.