[][src]Struct krill::commons::remote::builder::SignedAttributes

pub struct SignedAttributes { /* fields omitted */ }

This type represent Signed Attributes in Signer Info.

This appears in the SignerInfo as:
    signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL,

Where:
    SignedAttributes ::= SET SIZE (1..MAX) OF Attribute

    Attribute ::= SEQUENCE {
        attrType OBJECT IDENTIFIER,
        attrValues SET OF AttributeValue }

    AttributeValue ::= ANY

See section 2.1.6.4 of RFC 6488 for specifications.

Methods

impl SignedAttributes[src]

pub fn new(content_type: &'static Oid<&'static [u8]>, content: &Bytes) -> Self[src]

Creates a new SignedAttributes.

Needs the content type for this specific kind of CMS (protocol, ROA, etc), as well as a reference to the eContent bytes, excluding the OctetString tag and length.

This implementation will include a signing-time attribute using the time that the SignedAttributes was created.

pub fn encode<'a>(&'a self) -> impl Values + 'a[src]

Encodes the SignedAttributes for inclusion in a CMS.

pub fn sign<S: Signer>(
    &self,
    signer: &S
) -> Result<(Signature, PublicKey), Error<S::Error>>
[src]

Generates a signature using a one time key

Auto Trait Implementations

Blanket Implementations

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

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

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

type Error = !

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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