Méthode | Description | |
---|---|---|
Accept ( MimeVisitor visitor ) : void |
Dispatches to the specific visit method for this MIME entity. This default implementation for MimeKit.Cryptography.ApplicationPkcs7Mime nodes calls MimeKit.MimeVisitor.VisitApplicationPkcs7Mime. 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.VisitApplicationPkcs7Mime. |
|
ApplicationPkcs7Mime ( MimeEntityConstructorArgs args ) : System |
Initializes a new instance of the MimeKit.Cryptography.ApplicationPkcs7Mime class. This constructor is used by MimeKit.MimeParser. |
|
ApplicationPkcs7Mime ( SecureMimeType type, Stream stream ) : System |
Initializes a new instance of the MimeKit.Cryptography.ApplicationPkcs7Mime class. Creates a new MIME part with a Content-Type of application/pkcs7-mime and the stream as its content. Unless you are writing your own pkcs7 implementation, you'll probably want to use the Compress(MimeEntity), Encrypt(CmsRecipientCollection, MimeEntity), and/or Sign(CmsSigner, MimeEntity) method to create new instances of this class. |
|
Compress ( MimeEntity entity ) : |
Compresses the specified entity. Compresses the specified entity using the default SecureMimeContext. |
|
Compress ( MimeKit.Cryptography.SecureMimeContext ctx, MimeEntity entity ) : |
Compresses the specified entity. Compresses the specified entity using the specified SecureMimeContext. |
|
Decompress ( ) : MimeEntity |
Decompresses the content. Decompresses the content using the default SecureMimeContext. |
|
Decompress ( MimeKit.Cryptography.SecureMimeContext ctx ) : MimeEntity |
Decompresses the content. Decompresses the content using the specified SecureMimeContext. |
|
Decrypt ( ) : MimeEntity |
Decrypts the content. Decrypts the content using the default SecureMimeContext. |
|
Decrypt ( MimeKit.Cryptography.SecureMimeContext ctx ) : MimeEntity |
Decrypts the content. Decrypts the content using the specified SecureMimeContext. |
|
Encrypt ( CmsRecipientCollection recipients, MimeEntity entity ) : |
Encrypts the specified entity. Encrypts the entity to the specified recipients using the default SecureMimeContext. |
|
Encrypt ( IEnumerable |
Encrypts the specified entity. Encrypts the entity to the specified recipients using the default SecureMimeContext. |
|
Encrypt ( MimeKit.Cryptography.SecureMimeContext ctx, CmsRecipientCollection recipients, MimeEntity entity ) : |
Encrypts the specified entity. Encrypts the entity to the specified recipients using the supplied SecureMimeContext. |
|
Encrypt ( MimeKit.Cryptography.SecureMimeContext ctx, IEnumerable |
Encrypts the specified entity. Encrypts the entity to the specified recipients using the supplied SecureMimeContext. |
|
Import ( MimeKit.Cryptography.SecureMimeContext ctx ) : void |
Imports the certificates contained in the content. Imports the certificates contained in the content. |
|
Sign ( |
Cryptographically signs the specified entity. Signs the entity using the supplied signer. For better interoperability with other mail clients, you should use MultipartSigned.Create(SecureMimeContext, CmsSigner, MimeEntity) instead as the multipart/signed format is supported among a much larger subset of mail client software. |
|
Sign ( MailboxAddress signer, DigestAlgorithm digestAlgo, MimeEntity entity ) : |
Cryptographically signs the specified entity. Signs the entity using the supplied signer and digest algorithm. For better interoperability with other mail clients, you should use MultipartSigned.Create(SecureMimeContext, CmsSigner, MimeEntity) instead as the multipart/signed format is supported among a much larger subset of mail client software. |
|
Sign ( MimeKit.Cryptography.SecureMimeContext ctx, |
Cryptographically signs the specified entity. Signs the entity using the supplied signer and SecureMimeContext. For better interoperability with other mail clients, you should use MultipartSigned.Create(SecureMimeContext, CmsSigner, MimeEntity) instead as the multipart/signed format is supported among a much larger subset of mail client software. |
|
Sign ( MimeKit.Cryptography.SecureMimeContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, MimeEntity entity ) : |
Cryptographically signs the specified entity. Signs the entity using the supplied signer, digest algorithm and SecureMimeContext. For better interoperability with other mail clients, you should use MultipartSigned.Create(SecureMimeContext, CmsSigner, MimeEntity) instead as the multipart/signed format is supported among a much larger subset of mail client software. |
|
SignAndEncrypt ( |
Cryptographically signs and encrypts the specified entity. Cryptographically signs entity using the supplied signer and then encrypts the result to the specified recipients. |
|
SignAndEncrypt ( MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable |
Cryptographically signs and encrypts the specified entity. Cryptographically signs entity using the supplied signer and then encrypts the result to the specified recipients. |
|
SignAndEncrypt ( MimeKit.Cryptography.SecureMimeContext ctx, |
Cryptographically signs and encrypts the specified entity. Cryptographically signs entity using the supplied signer and then encrypts the result to the specified recipients. |
|
SignAndEncrypt ( MimeKit.Cryptography.SecureMimeContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable |
Cryptographically signs and encrypts the specified entity. Cryptographically signs entity using the supplied signer and then encrypts the result to the specified recipients. |
|
Verify ( MimeEntity &entity ) : DigitalSignatureCollection |
Verifies the signed-data and returns the unencapsulated MimeKit.MimeEntity. Verifies the signed-data and returns the unencapsulated MimeKit.MimeEntity. |
|
Verify ( MimeKit.Cryptography.SecureMimeContext ctx, MimeEntity &entity ) : DigitalSignatureCollection |
Verifies the signed-data and returns the unencapsulated MimeKit.MimeEntity. Verifies the signed-data and returns the unencapsulated MimeKit.MimeEntity. |
public Accept ( MimeVisitor visitor ) : void | ||
visitor | MimeVisitor | The visitor. |
Résultat | void |
public ApplicationPkcs7Mime ( MimeEntityConstructorArgs args ) : System | ||
args | MimeEntityConstructorArgs | Information used by the constructor. |
Résultat | System |
public ApplicationPkcs7Mime ( SecureMimeType type, Stream stream ) : System | ||
type | SecureMimeType | The S/MIME type. |
stream | Stream | The content stream. |
Résultat | System |
public static Compress ( MimeEntity entity ) : |
||
entity | MimeEntity | The entity. |
Résultat |
public static Compress ( MimeKit.Cryptography.SecureMimeContext ctx, MimeEntity entity ) : |
||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for compressing. |
entity | MimeEntity | The entity. |
Résultat |
public Decompress ( MimeKit.Cryptography.SecureMimeContext ctx ) : MimeEntity | ||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for decompressing. |
Résultat | MimeEntity |
public Decrypt ( MimeKit.Cryptography.SecureMimeContext ctx ) : MimeEntity | ||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for decrypting. |
Résultat | MimeEntity |
public static Encrypt ( CmsRecipientCollection recipients, MimeEntity entity ) : |
||
recipients | CmsRecipientCollection | The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public static Encrypt ( IEnumerable |
||
recipients | IEnumerable |
The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public static Encrypt ( MimeKit.Cryptography.SecureMimeContext ctx, CmsRecipientCollection recipients, MimeEntity entity ) : |
||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for encrypting. |
recipients | CmsRecipientCollection | The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public static Encrypt ( MimeKit.Cryptography.SecureMimeContext ctx, IEnumerable |
||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for encrypting. |
recipients | IEnumerable |
The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public Import ( MimeKit.Cryptography.SecureMimeContext ctx ) : void | ||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to import certificates into. |
Résultat | void |
public static Sign ( |
||
signer | The signer. | |
entity | MimeEntity | The entity. |
Résultat |
public static Sign ( MailboxAddress signer, DigestAlgorithm digestAlgo, MimeEntity entity ) : |
||
signer | MailboxAddress | The signer. |
digestAlgo | DigestAlgorithm | The digest algorithm to use for signing. |
entity | MimeEntity | The entity. |
Résultat |
public static Sign ( MimeKit.Cryptography.SecureMimeContext ctx, |
||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for signing. |
signer | The signer. | |
entity | MimeEntity | The entity. |
Résultat |
public static Sign ( MimeKit.Cryptography.SecureMimeContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, MimeEntity entity ) : |
||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for signing. |
signer | MailboxAddress | The signer. |
digestAlgo | DigestAlgorithm | The digest algorithm to use for signing. |
entity | MimeEntity | The entity. |
Résultat |
public static SignAndEncrypt ( |
||
signer | The signer. | |
recipients | CmsRecipientCollection | The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public static SignAndEncrypt ( MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable |
||
signer | MailboxAddress | The signer. |
digestAlgo | DigestAlgorithm | The digest algorithm to use for signing. |
recipients | IEnumerable |
The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public static SignAndEncrypt ( MimeKit.Cryptography.SecureMimeContext ctx, |
||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for signing and encrypting. |
signer | The signer. | |
recipients | CmsRecipientCollection | The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public static SignAndEncrypt ( MimeKit.Cryptography.SecureMimeContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable |
||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for signing and encrypting. |
signer | MailboxAddress | The signer. |
digestAlgo | DigestAlgorithm | The digest algorithm to use for signing. |
recipients | IEnumerable |
The recipients. |
entity | MimeEntity | The entity. |
Résultat |
public Verify ( MimeEntity &entity ) : DigitalSignatureCollection | ||
entity | MimeEntity | The unencapsulated entity. |
Résultat | DigitalSignatureCollection |
public Verify ( MimeKit.Cryptography.SecureMimeContext ctx, MimeEntity &entity ) : DigitalSignatureCollection | ||
ctx | MimeKit.Cryptography.SecureMimeContext | The S/MIME context to use for verifying the signature. |
entity | MimeEntity | The unencapsulated entity. |
Résultat | DigitalSignatureCollection |