[−][src]Struct rpki::sigobj::SignedObjectBuilder
Methods
impl SignedObjectBuilder
[src]
pub fn new(
serial_number: Serial,
validity: Validity,
crl_uri: Rsync,
ca_issuer: Rsync,
signed_object: Rsync
) -> Self
[src]
serial_number: Serial,
validity: Validity,
crl_uri: Rsync,
ca_issuer: Rsync,
signed_object: Rsync
) -> Self
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]
F: FnOnce(&mut IpBlocksBuilder),
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]
F: FnOnce(&mut IpBlocksBuilder),
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]
F: FnOnce(&mut AsBlocksBuilder),
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]
self,
content_type: Oid<Bytes>,
content: Bytes,
signer: &S,
issuer_key: &S::KeyId
) -> Result<SignedObject, SigningError<S::Error>>
Trait Implementations
impl Clone for SignedObjectBuilder
[src]
fn clone(&self) -> SignedObjectBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SignedObjectBuilder
[src]
Auto Trait Implementations
impl Send for SignedObjectBuilder
impl Sync for SignedObjectBuilder
impl Unpin for SignedObjectBuilder
impl UnwindSafe for SignedObjectBuilder
impl RefUnwindSafe for SignedObjectBuilder
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,