[−][src]Enum krill::daemon::ca::KeyState
This type contains the keys for a resource class and guards that keys are created, activated, rolled and retired properly.
Variants
Pending(PendingKey)
Active(CurrentKey)
RollPending(PendingKey, CurrentKey)
RollNew(NewKey, CurrentKey)
RollOld(CurrentKey, OldKey)
Methods
impl KeyState
[src]
pub fn create(pending_key: KeyIdentifier) -> Self
[src]
pub fn add_request(&mut self, key_id: KeyIdentifier, req: IssuanceRequest)
[src]
pub fn revoke<S: Signer>(
&self,
class_name: ResourceClassName,
signer: &S
) -> Result<Vec<RevocationRequest>>
[src]
&self,
class_name: ResourceClassName,
signer: &S
) -> Result<Vec<RevocationRequest>>
Revoke all current keys
pub fn apply_delta(
&mut self,
delta: CurrentObjectSetDelta,
key_id: KeyIdentifier
)
[src]
&mut self,
delta: CurrentObjectSetDelta,
key_id: KeyIdentifier
)
pub fn request_certs<S: Signer>(
&self,
rcn: ResourceClassName,
entitlement: &EntitlementClass,
base_repo: &RepoInfo,
name_space: &str,
signer: &S
) -> Result<Vec<EvtDet>>
[src]
&self,
rcn: ResourceClassName,
entitlement: &EntitlementClass,
base_repo: &RepoInfo,
name_space: &str,
signer: &S
) -> Result<Vec<EvtDet>>
pub fn request_certs_new_repo<S: Signer>(
&self,
rcn: ResourceClassName,
base_repo: &RepoInfo,
name_space: &str,
signer: &S
) -> Result<Vec<EvtDet>>
[src]
&self,
rcn: ResourceClassName,
base_repo: &RepoInfo,
name_space: &str,
signer: &S
) -> Result<Vec<EvtDet>>
pub fn cert_requests(&self) -> Vec<IssuanceRequest>
[src]
Returns all open certificate requests
pub fn revoke_request(&self) -> Option<&RevocationRequest>
[src]
Returns the revoke request if there is an old key.
pub fn as_info(&self) -> ResourceClassKeysInfo
[src]
impl KeyState
[src]
pub fn keyroll_initiate<S: Signer>(
&self,
class_name: ResourceClassName,
parent_class_name: ResourceClassName,
base_repo: &RepoInfo,
name_space: &str,
signer: &mut S
) -> Result<Vec<EvtDet>>
[src]
&self,
class_name: ResourceClassName,
parent_class_name: ResourceClassName,
base_repo: &RepoInfo,
name_space: &str,
signer: &mut S
) -> Result<Vec<EvtDet>>
Initiates a key roll if the current state is 'Active'. This will return event details for a newly create pending key and requested certificate for it.
pub fn keyroll_activate<S: Signer>(
&self,
class_name: ResourceClassName,
parent_class_name: ResourceClassName,
signer: &S
) -> Result<EvtDet>
[src]
&self,
class_name: ResourceClassName,
parent_class_name: ResourceClassName,
signer: &S
) -> Result<EvtDet>
Marks the new key as current, and the current key as old, and requests revocation of the old key.
pub fn has_new_key(&self) -> bool
[src]
Returns true if there is a new key
Trait Implementations
impl Clone for KeyState
[src]
impl Eq for KeyState
[src]
impl PartialEq<KeyState> for KeyState
[src]
impl Debug for KeyState
[src]
impl StructuralPartialEq for KeyState
[src]
impl StructuralEq for KeyState
[src]
impl Serialize for KeyState
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for KeyState
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnwindSafe for KeyState
impl RefUnwindSafe for KeyState
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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 = !
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,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,