Trait gmime::ApplicationPkcs7MimeExt[][src]

pub trait ApplicationPkcs7MimeExt {
    fn get_smime_type(&self) -> SecureMimeType;
fn verify(
        &self,
        flags: VerifyFlags
    ) -> Result<(Option<SignatureList>, Object), Error>; }

Trait containing all ApplicationPkcs7Mime methods.

Implementors

ApplicationPkcs7Mime

Required Methods

Gets the smime-type value of the Content-Type header.

Returns

the smime-type value.

Attempts to verify the signed self part and extract the original MIME entity.

flags

a VerifyFlags

entity

the extracted entity

Returns

a new SignatureList object on success or None on fail. If the verification fails, an exception will be set on err to provide information as to why the failure occurred.

Implementors