[−][src]Struct krill::commons::remote::builder::SignedAttributes
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]
&self,
signer: &S
) -> Result<(Signature, PublicKey), Error<S::Error>>
Generates a signature using a one time key
Auto Trait Implementations
impl Send for SignedAttributes
impl Sync for SignedAttributes
impl Unpin for SignedAttributes
impl UnwindSafe for SignedAttributes
impl RefUnwindSafe for SignedAttributes
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,