C# Class MimeKit.Cryptography.ApplicationPkcs7Signature

An S/MIME part with a Content-Type of application/pkcs7-signature.

An application/pkcs7-signature part contains detatched pkcs7 signature data and is typically contained within a MultipartSigned part.

To verify the signature, use the MultipartSigned.Verify() method on the parent multipart/signed part.

Inheritance: MimePart
Mostrar archivo Open project: nachocove/MimeKit Class Usage Examples

Public Methods

Method Description
Accept ( MimeVisitor visitor ) : void

Dispatches to the specific visit method for this MIME entity.

This default implementation for MimeKit.Cryptography.ApplicationPkcs7Signature nodes calls MimeKit.MimeVisitor.VisitApplicationPkcs7Signature. Override this method to call into a more specific method on a derived visitor class of the MimeKit.MimeVisitor class. However, it should still support unknown visitors by calling MimeKit.MimeVisitor.VisitApplicationPkcs7Signature.

ApplicationPkcs7Signature ( MimeEntityConstructorArgs args ) : System

Initializes a new instance of the MimeKit.Cryptography.ApplicationPkcs7Signature class.

This constructor is used by MimeKit.MimeParser.

ApplicationPkcs7Signature ( Stream stream ) : System

Initializes a new instance of the MimeKit.Cryptography.ApplicationPkcs7Signature class with a Content-Type of application/pkcs7-signature.

Creates a new MIME part with a Content-Type of application/pkcs7-signature and the stream as its content.

Method Details

Accept() public method

Dispatches to the specific visit method for this MIME entity.
This default implementation for MimeKit.Cryptography.ApplicationPkcs7Signature nodes calls MimeKit.MimeVisitor.VisitApplicationPkcs7Signature. Override this method to call into a more specific method on a derived visitor class of the MimeKit.MimeVisitor class. However, it should still support unknown visitors by calling MimeKit.MimeVisitor.VisitApplicationPkcs7Signature.
/// is null. ///
public Accept ( MimeVisitor visitor ) : void
visitor MimeVisitor The visitor.
return void

ApplicationPkcs7Signature() public method

Initializes a new instance of the MimeKit.Cryptography.ApplicationPkcs7Signature class.
This constructor is used by MimeKit.MimeParser.
/// is null. ///
public ApplicationPkcs7Signature ( MimeEntityConstructorArgs args ) : System
args MimeEntityConstructorArgs Information used by the constructor.
return System

ApplicationPkcs7Signature() public method

Initializes a new instance of the MimeKit.Cryptography.ApplicationPkcs7Signature class with a Content-Type of application/pkcs7-signature.
Creates a new MIME part with a Content-Type of application/pkcs7-signature and the stream as its content.
/// is null. /// /// does not support reading. /// -or- /// does not support seeking. ///
public ApplicationPkcs7Signature ( Stream stream ) : System
stream Stream The content stream.
return System