[][src]Struct rpki::sigobj::SignedObjectBuilder

pub struct SignedObjectBuilder { /* fields omitted */ }

Methods

impl SignedObjectBuilder[src]

pub fn new(
    serial_number: Serial,
    validity: Validity,
    crl_uri: Rsync,
    ca_issuer: Rsync,
    signed_object: Rsync
) -> Self
[src]

pub fn digest_algorithm(&self) -> DigestAlgorithm[src]

pub fn set_digest_algorithm(&mut self, algorithm: DigestAlgorithm)[src]

pub fn serial_number(&self) -> Serial[src]

pub fn set_serial_number(&mut self, serial: Serial)[src]

pub fn validity(&self) -> Validity[src]

pub fn set_validity(&mut self, validity: Validity)[src]

pub fn issuer(&self) -> Option<&Name>[src]

pub fn set_issuer(&mut self, name: Option<Name>)[src]

pub fn subject(&self) -> Option<&Name>[src]

pub fn set_subject(&mut self, name: Option<Name>)[src]

pub fn crl_uri(&self) -> &Rsync[src]

pub fn set_crl_uri(&mut self, uri: Rsync)[src]

pub fn ca_issuer(&self) -> &Rsync[src]

pub fn set_ca_issuer(&mut self, uri: Rsync)[src]

pub fn signed_object(&self) -> &Rsync[src]

pub fn set_signed_object(&mut self, uri: Rsync)[src]

pub fn v4_resources(&self) -> Option<&IpResources>[src]

Returns a reference to the IPv4 address resources if present.

pub fn set_v4_resources(&mut self, resources: Option<IpResources>)[src]

Set the IPv4 address resources.

pub fn set_v4_resources_inherit(&mut self)[src]

Sets the IPv4 address resources to inherit.

pub fn build_v4_resource_blocks<F>(&mut self, op: F) where
    F: FnOnce(&mut IpBlocksBuilder), 
[src]

Builds the blocks IPv4 address resources.

pub fn v6_resources(&self) -> Option<&IpResources>[src]

Returns a reference to the IPv6 address resources if present.

pub fn set_v6_resources(&mut self, resources: Option<IpResources>)[src]

Set the IPv6 address resources.

pub fn set_v6_resources_inherit(&mut self)[src]

Sets the IPv6 address resources to inherit.

pub fn build_v6_resource_blocks<F>(&mut self, op: F) where
    F: FnOnce(&mut IpBlocksBuilder), 
[src]

Builds the blocks IPv6 address resources.

pub fn has_ip_resources(&self) -> bool[src]

Returns whether the certificate has any IP resources at all.

pub fn as_resources(&self) -> Option<&AsResources>[src]

Returns a reference to the AS resources if present.

pub fn set_as_resources(&mut self, resources: Option<AsResources>)[src]

Set the AS resources.

pub fn set_as_resources_inherit(&mut self)[src]

Sets the AS resources to inherit.

pub fn build_as_resource_blocks<F>(&mut self, op: F) where
    F: FnOnce(&mut AsBlocksBuilder), 
[src]

Builds the blocks AS resources.

pub fn signing_time(&self) -> Option<Time>[src]

Returns the signing time attribute.

pub fn set_signing_time(&mut self, signing_time: Option<Time>)[src]

Sets the signing time attribute.

pub fn binary_signing_time(&self) -> Option<u64>[src]

Returns the binary signing time attribute.

pub fn set_binary_signing_time(&mut self, time: Option<u64>)[src]

Sets the binary signing time attribute.

pub fn finalize<S: Signer>(
    self,
    content_type: Oid<Bytes>,
    content: Bytes,
    signer: &S,
    issuer_key: &S::KeyId
) -> Result<SignedObject, SigningError<S::Error>>
[src]

Trait Implementations

impl Clone for SignedObjectBuilder[src]

impl Debug for SignedObjectBuilder[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]