[][src]Type Definition sequoia_openpgp::cert::amalgamation::ValidUserAttributeAmalgamation

type ValidUserAttributeAmalgamation<'a> = ValidComponentAmalgamation<'a, UserAttribute>;

A Valid User Attribute and its associated data.

A specialized version of ValidComponentAmalgamation.

Implementations

impl<'a> ValidUserAttributeAmalgamation<'a>[src]

pub fn attested_certifications(
    &self
) -> impl Iterator<Item = &Signature> + Send + Sync
[src]

Returns the user attributes's attested third-party certifications.

This feature is experimental.

Allows the certificate owner to attest to third party certifications. See Section 5.2.3.30 of RFC 4880bis for details. This can be used to address certificate flooding concerns.

This method only returns signatures that are valid under the current policy and are attested by the certificate holder.

pub fn attestation_key_signatures(
    &'a self
) -> impl Iterator<Item = &'a Signature> + Send + Sync
[src]

Returns set of active attestation key signatures.

This feature is experimental.

Returns the set of signatures with the newest valid signature creation time. Older signatures are not returned. The sum of all digests in these signatures are the set of attested third-party certifications.

This interface is useful for pruning old attestation key signatures when filtering a certificate.

Note: This is a low-level interface. Consider using ValidUserAttributeAmalgamation::attested_certifications to iterate over all attested certifications.

pub fn attest_certifications<C, S>(
    &self,
    primary_signer: &mut dyn Signer,
    certifications: C
) -> Result<Vec<Signature>> where
    C: IntoIterator<Item = S>,
    S: Borrow<Signature>, 
[src]

Attests to third-party certifications.

This feature is experimental.

Allows the certificate owner to attest to third party certifications. See Section 5.2.3.30 of RFC 4880bis for details. This can be used to address certificate flooding concerns.

Examples

See ValidUserIDAmalgamation::attest_certifications#examples.