[][src]Struct rpki::sigobj::SignedObject

pub struct SignedObject { /* fields omitted */ }

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]

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]

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]

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]

impl Debug for SignedObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]