[−][src]Struct rpki::sigobj::SignedObject
A signed object.
Methods
impl SignedObject
[src]
pub fn content_type(&self) -> &Oid<Bytes>
[src]
Returns a reference to the object’s content type.
pub fn content(&self) -> &OctetString
[src]
Returns a reference to the object’s content.
pub fn decode_content<F, T>(&self, op: F) -> Result<T, Error> where
F: FnOnce(&mut Constructed<OctetStringSource>) -> Result<T, Error>,
[src]
F: FnOnce(&mut Constructed<OctetStringSource>) -> Result<T, Error>,
Decodes the object’s content.
pub fn cert(&self) -> &Cert
[src]
Returns a reference to the certificate the object is signed with.
impl SignedObject
[src]
pub fn decode<S: Source>(source: S, strict: bool) -> Result<Self, S::Err>
[src]
Decodes a signed object from the given source.
pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>
[src]
Takes a signed object from an encoded constructed value.
pub fn validate(
self,
issuer: &ResourceCert,
strict: bool
) -> Result<ResourceCert, ValidationError>
[src]
self,
issuer: &ResourceCert,
strict: bool
) -> Result<ResourceCert, ValidationError>
Validates the signed object.
Upon success, the method returns the validated EE certificate of the object.
pub fn validate_at(
self,
issuer: &ResourceCert,
strict: bool,
now: Time
) -> Result<ResourceCert, ValidationError>
[src]
self,
issuer: &ResourceCert,
strict: bool,
now: Time
) -> Result<ResourceCert, ValidationError>
Validates the signed object at he given time.
pub fn encode_ref<'a>(&'a self) -> impl Values + 'a
[src]
Returns a value encoder for a reference to a signed object.
Trait Implementations
impl Clone for SignedObject
[src]
fn clone(&self) -> SignedObject
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SignedObject
[src]
Auto Trait Implementations
impl Send for SignedObject
impl Sync for SignedObject
impl Unpin for SignedObject
impl UnwindSafe for SignedObject
impl RefUnwindSafe for SignedObject
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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 = Infallible
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,