Click or drag to resize
MimeKit

ApplicationPkcs7Mime Class

An S/MIME part with a Content-Type of application/pkcs7-mime.
Inheritance Hierarchy

Namespace:  MimeKit.Cryptography
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public class ApplicationPkcs7Mime : MimePart

The ApplicationPkcs7Mime type exposes the following members.

Constructors
  NameDescription
Public methodApplicationPkcs7Mime(MimeEntityConstructorArgs)
Initialize a new instance of the ApplicationPkcs7Mime class.
Public methodApplicationPkcs7Mime(SecureMimeType, Stream)
Initialize a new instance of the ApplicationPkcs7Mime class.
Top
Properties
  NameDescription
Public propertyCode exampleContent
Gets or sets the MIME content.
(Inherited from MimePart.)
Public propertyContentBase
Gets or sets the base content URI.
(Inherited from MimeEntity.)
Public propertyContentDescription
Gets or sets the description of the content if available.
(Inherited from MimePart.)
Public propertyContentDisposition
Gets or sets the content disposition.
(Inherited from MimeEntity.)
Public propertyContentDuration
Gets or sets the duration of the content if available.
(Inherited from MimePart.)
Public propertyContentId
Gets or sets the content identifier.
(Inherited from MimeEntity.)
Public propertyContentLocation
Gets or sets the content location.
(Inherited from MimeEntity.)
Public propertyContentMd5
Gets or sets the md5sum of the content.
(Inherited from MimePart.)
Public propertyContentTransferEncoding
Gets or sets the content transfer encoding.
(Inherited from MimePart.)
Public propertyContentType
Gets the type of the content.
(Inherited from MimeEntity.)
Public propertyCode exampleFileName
Gets or sets the name of the file.
(Inherited from MimePart.)
Public propertyHeaders
Gets the list of headers.
(Inherited from MimeEntity.)
Public propertyIsAttachment
Gets a value indicating whether this MimePart is an attachment.
(Inherited from MimeEntity.)
Public propertySecureMimeType
Gets the value of the "smime-type" parameter.
Top
Methods
  NameDescription
Public methodAccept
Dispatches to the specific visit method for this MIME entity.
(Overrides MimePartAccept(MimeVisitor).)
Public methodStatic memberCompress(MimeEntity, CancellationToken)
Compress the specified entity.
Public methodStatic memberCompress(SecureMimeContext, MimeEntity, CancellationToken)
Compress the specified entity.
Public methodStatic memberCompressAsync(MimeEntity, CancellationToken)
Asynchronously compress the specified entity.
Public methodStatic memberCompressAsync(SecureMimeContext, MimeEntity, CancellationToken)
Asynchronously compress the specified entity.
Public methodComputeContentMd5
Computes the MD5 checksum of the content.
(Inherited from MimePart.)
Public methodDecompress(CancellationToken)
Decompress the compressed-data.
Public methodDecompress(SecureMimeContext, CancellationToken)
Decompress the compressed-data.
Public methodDecompressAsync(CancellationToken)
Asynchronously decompress the compressed-data.
Public methodDecompressAsync(SecureMimeContext, CancellationToken)
Asynchronously decompress the compressed-data.
Public methodDecrypt(CancellationToken)
Decrypt the enveloped-data.
Public methodDecrypt(SecureMimeContext, CancellationToken)
Decrypt the enveloped-data.
Public methodDecryptAsync(CancellationToken)
Asynchronously decrypt the enveloped-data.
Public methodDecryptAsync(SecureMimeContext, CancellationToken)
Asynchronously decrypt the enveloped-data.
Public methodDispose
Releases all resources used by the MimeEntity object.
(Inherited from MimeEntity.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the MimePart and optionally releases the managed resources.
(Inherited from MimePart.)
Public methodStatic memberEncrypt(CmsRecipientCollection, MimeEntity, CancellationToken)
Encrypt the specified entity.
Public methodStatic memberEncrypt(IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Encrypt the specified entity.
Public methodStatic memberEncrypt(SecureMimeContext, CmsRecipientCollection, MimeEntity, CancellationToken)
Encrypt the specified entity.
Public methodStatic memberEncrypt(SecureMimeContext, IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Encrypt the specified entity.
Public methodStatic memberEncryptAsync(CmsRecipientCollection, MimeEntity, CancellationToken)
Asynchronously encrypt the specified entity.
Public methodStatic memberEncryptAsync(IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Asynchronously encrypt the specified entity.
Public methodStatic memberEncryptAsync(SecureMimeContext, CmsRecipientCollection, MimeEntity, CancellationToken)
Asynchronously encrypt the specified entity.
Public methodStatic memberEncryptAsync(SecureMimeContext, IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Asynchronously encrypt the specified entity.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the MimeEntity is reclaimed by garbage collection.
(Inherited from MimeEntity.)
Public methodGetBestEncoding(EncodingConstraint, CancellationToken)
Calculates the most efficient content encoding given the specified constraint.
(Inherited from MimePart.)
Public methodGetBestEncoding(EncodingConstraint, Int32, CancellationToken)
Calculates the most efficient content encoding given the specified constraint.
(Inherited from MimePart.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodImport
Import the certificates contained in the application/pkcs7-mime content.
Public methodImportAsync
Asynchronously import the certificates contained in the application/pkcs7-mime content.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnHeadersChanged
Called when the headers change in some way.
(Inherited from MimePart.)
Public methodPrepare
Prepare the MIME entity for transport using the specified encoding constraints.
(Inherited from MimePart.)
Protected methodRemoveHeader
Remove a header by name.
(Inherited from MimeEntity.)
Protected methodSetHeader(String, Byte)
Set the value of a header using the raw value.
(Inherited from MimeEntity.)
Protected methodSetHeader(String, String)
Set the value of a header.
(Inherited from MimeEntity.)
Public methodStatic memberSign(CmsSigner, MimeEntity, CancellationToken)
Sign the specified entity.
Public methodStatic memberSign(MailboxAddress, DigestAlgorithm, MimeEntity, CancellationToken)
Sign the specified entity.
Public methodStatic memberSign(SecureMimeContext, CmsSigner, MimeEntity, CancellationToken)
Sign the specified entity.
Public methodStatic memberSign(SecureMimeContext, MailboxAddress, DigestAlgorithm, MimeEntity, CancellationToken)
Sign the specified entity.
Public methodStatic memberSignAndEncrypt(CmsSigner, CmsRecipientCollection, MimeEntity, CancellationToken)
Sign and encrypt the specified entity.
Public methodStatic memberSignAndEncrypt(MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Sign and encrypt the specified entity.
Public methodStatic memberSignAndEncrypt(SecureMimeContext, CmsSigner, CmsRecipientCollection, MimeEntity, CancellationToken)
Sign and encrypt the specified entity.
Public methodStatic memberSignAndEncrypt(SecureMimeContext, MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Sign and encrypt the specified entity.
Public methodStatic memberSignAndEncryptAsync(CmsSigner, CmsRecipientCollection, MimeEntity, CancellationToken)
Asynchroinously sign and encrypt the specified entity.
Public methodStatic memberSignAndEncryptAsync(MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Asynchronously sign and encrypt the specified entity.
Public methodStatic memberSignAndEncryptAsync(SecureMimeContext, CmsSigner, CmsRecipientCollection, MimeEntity, CancellationToken)
Asynchronously sign and encrypt the specified entity.
Public methodStatic memberSignAndEncryptAsync(SecureMimeContext, MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken)
Asynchronously sign and encrypt the specified entity.
Public methodStatic memberSignAsync(CmsSigner, MimeEntity, CancellationToken)
Asynchronously sign the specified entity.
Public methodStatic memberSignAsync(MailboxAddress, DigestAlgorithm, MimeEntity, CancellationToken)
Asynchronously sign the specified entity.
Public methodStatic memberSignAsync(SecureMimeContext, CmsSigner, MimeEntity, CancellationToken)
Asynchronously sign the specified entity.
Public methodStatic memberSignAsync(SecureMimeContext, MailboxAddress, DigestAlgorithm, MimeEntity, CancellationToken)
Asynchronously sign the specified entity.
Public methodToString
Returns a String that represents the MimeEntity for debugging purposes.
(Inherited from MimeEntity.)
Protected methodTryInit
Tries to use the given object to initialize the appropriate property.
(Inherited from MimeEntity.)
Public methodVerify(MimeEntity, CancellationToken)
Verifies the signed-data and returns the unencapsulated MimeEntity.
Public methodVerify(SecureMimeContext, MimeEntity, CancellationToken)
Verify the signed-data and return the unencapsulated MimeEntity.
Public methodVerifyContentMd5
Verifies the Content-Md5 value against an independently computed md5sum.
(Inherited from MimePart.)
Public methodWriteTo(Stream, CancellationToken)
Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteTo(String, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, Stream, CancellationToken)
Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, String, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(Stream, Boolean, CancellationToken)
Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteTo(String, Boolean, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, String, Boolean, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, Stream, Boolean, CancellationToken)
Write the MimePart to the specified output stream.
(Inherited from MimePart.)
Public methodWriteToAsync(Stream, CancellationToken)
Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteToAsync(String, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, Stream, CancellationToken)
Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, String, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(Stream, Boolean, CancellationToken)
Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteToAsync(String, Boolean, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, String, Boolean, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, Stream, Boolean, CancellationToken)
Asynchronously write the MimePart to the specified output stream.
(Inherited from MimePart.)
Top
Remarks
An application/pkcs7-mime is an S/MIME part and may contain encrypted, signed or compressed data (or any combination of the above).
See Also