pub struct TrustAnchorObjects { /* private fields */ }
Expand description
Contains all Trust Anchor objects, including the the TA certificate and TAL.
This is kept by the Trust Anchor Proxy as read-only, so that it can publish these objects.
The Trust Anchor Signer can make changes to this set based on the requests it gets from the proxy. It can then return a response to the proxy that allow it to update the state with that same change.
Implementations§
Source§impl TrustAnchorObjects
impl TrustAnchorObjects
Sourcepub fn create(
signing_cert: &ReceivedCert,
initial_number: u64,
next_update_weeks: i64,
signer: &KrillSigner,
) -> KrillResult<Self>
pub fn create( signing_cert: &ReceivedCert, initial_number: u64, next_update_weeks: i64, signer: &KrillSigner, ) -> KrillResult<Self>
Creates a new TrustAnchorObjects for the signing certificate.
Sourcepub fn republish(
&mut self,
signing_cert: &ReceivedCert,
next_update_weeks: i64,
mft_number_override: Option<u64>,
signer: &KrillSigner,
) -> KrillResult<()>
pub fn republish( &mut self, signing_cert: &ReceivedCert, next_update_weeks: i64, mft_number_override: Option<u64>, signer: &KrillSigner, ) -> KrillResult<()>
Publish next revision of the published objects.
- Update CRL (times and revocations)
- Update Manifest (times and listed objects)
pub fn publish_elements(&self) -> KrillResult<Vec<PublishElement>>
pub fn manifest(&self) -> &PublishedManifest
pub fn revision(&self) -> &ObjectSetRevision
pub fn this_update() -> Time
pub fn next_update(weeks: i64) -> Time
pub fn add_issued(&mut self, issued: IssuedCertificate)
pub fn get_issued(&self, ki: &KeyIdentifier) -> Option<&IssuedCertificate>
pub fn revoke_issued(&mut self, key: &KeyIdentifier) -> bool
Trait Implementations§
Source§impl Clone for TrustAnchorObjects
impl Clone for TrustAnchorObjects
Source§fn clone(&self) -> TrustAnchorObjects
fn clone(&self) -> TrustAnchorObjects
Returns a duplicate 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 TrustAnchorObjects
impl Debug for TrustAnchorObjects
Source§impl<'de> Deserialize<'de> for TrustAnchorObjects
impl<'de> Deserialize<'de> for TrustAnchorObjects
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 Display for TrustAnchorObjects
impl Display for TrustAnchorObjects
Source§impl PartialEq for TrustAnchorObjects
impl PartialEq for TrustAnchorObjects
Source§impl Serialize for TrustAnchorObjects
impl Serialize for TrustAnchorObjects
impl Eq for TrustAnchorObjects
impl StructuralPartialEq for TrustAnchorObjects
Auto Trait Implementations§
impl !Freeze for TrustAnchorObjects
impl RefUnwindSafe for TrustAnchorObjects
impl Send for TrustAnchorObjects
impl Sync for TrustAnchorObjects
impl Unpin for TrustAnchorObjects
impl UnwindSafe for TrustAnchorObjects
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Text for Twhere
T: Display,
impl<T> Text for Twhere
T: Display,
Source§fn write_escaped(
&self,
mode: TextEscape,
target: &mut impl Write,
) -> Result<(), Error>
fn write_escaped( &self, mode: TextEscape, target: &mut impl Write, ) -> Result<(), Error>
Write text escaped for the given mode to
target
.