C# Класс MimeKit.Cryptography.MultipartEncrypted

A multipart MIME part with a ContentType of multipart/encrypted containing an encrypted MIME part.
This mime-type is common when dealing with PGP/MIME but is not used for S/MIME.
Наследование: Multipart
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Accept ( MimeVisitor visitor ) : void

Dispatches to the specific visit method for this MIME entity.

This default implementation for MimeKit.Cryptography.MultipartEncrypted nodes calls MimeKit.MimeVisitor.VisitMultipartEncrypted. 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.VisitMultipartEncrypted.

Decrypt ( ) : MimeEntity

Decrypts the MultipartEncrypted part.

Decrypts the MultipartEncrypted part.

Decrypt ( DigitalSignatureCollection &signatures ) : MimeEntity

Decrypts the MultipartEncrypted part.

Decrypts the MultipartEncrypted and extracts any digital signatures in cases where the content was also signed.

Decrypt ( MimeKit.Cryptography.OpenPgpContext ctx ) : MimeEntity

Decrypts the MultipartEncrypted part.

Decrypts the MultipartEncrypted part.

Decrypt ( MimeKit.Cryptography.OpenPgpContext ctx, DigitalSignatureCollection &signatures ) : MimeEntity

Decrypts the MultipartEncrypted part.

Decrypts the MultipartEncrypted and extracts any digital signatures in cases where the content was also signed.

Encrypt ( EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Encrypt ( EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Encrypt ( IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Encrypt ( IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by encrypting the specified entity.

Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.

MultipartEncrypted ( ) : System

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

Creates a new MultipartEncrypted.

MultipartEncrypted ( MimeEntityConstructorArgs args ) : System

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

This constructor is used by MimeKit.MimeParser.

SignAndEncrypt ( MailboxAddress signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

SignAndEncrypt ( MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

SignAndEncrypt ( PgpSecretKey signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

SignAndEncrypt ( PgpSecretKey signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.

Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.

Приватные методы

Метод Описание
Create ( EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( MimeKit.Cryptography.OpenPgpContext ctx, EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( MimeKit.Cryptography.OpenPgpContext ctx, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( MimeKit.Cryptography.OpenPgpContext ctx, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( MimeKit.Cryptography.OpenPgpContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( MimeKit.Cryptography.OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( MimeKit.Cryptography.OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( PgpSecretKey signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
Create ( PgpSecretKey signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted

Описание методов

Accept() публичный метод

Dispatches to the specific visit method for this MIME entity.
This default implementation for MimeKit.Cryptography.MultipartEncrypted nodes calls MimeKit.MimeVisitor.VisitMultipartEncrypted. 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.VisitMultipartEncrypted.
/// is null. ///
public Accept ( MimeVisitor visitor ) : void
visitor MimeVisitor The visitor.
Результат void

Decrypt() публичный метод

Decrypts the MultipartEncrypted part.
Decrypts the MultipartEncrypted part.
/// The protocol parameter was not specified. /// -or- /// The multipart is malformed in some way. /// /// A suitable for /// decrypting could not be found. /// /// The private key could not be found to decrypt the encrypted data. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public Decrypt ( ) : MimeEntity
Результат MimeEntity

Decrypt() публичный метод

Decrypts the MultipartEncrypted part.
Decrypts the MultipartEncrypted and extracts any digital signatures in cases where the content was also signed.
/// The protocol parameter was not specified. /// -or- /// The multipart is malformed in some way. /// /// A suitable for /// decrypting could not be found. /// /// The private key could not be found to decrypt the encrypted data. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public Decrypt ( DigitalSignatureCollection &signatures ) : MimeEntity
signatures DigitalSignatureCollection A list of digital signatures if the data was both signed and encrypted.
Результат MimeEntity

Decrypt() публичный метод

Decrypts the MultipartEncrypted part.
Decrypts the MultipartEncrypted part.
/// is null. /// /// The protocol parameter was not specified. /// -or- /// The multipart is malformed in some way. /// /// The provided does not support the protocol parameter. /// /// The private key could not be found to decrypt the encrypted data. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public Decrypt ( MimeKit.Cryptography.OpenPgpContext ctx ) : MimeEntity
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for decrypting.
Результат MimeEntity

Decrypt() публичный метод

Decrypts the MultipartEncrypted part.
Decrypts the MultipartEncrypted and extracts any digital signatures in cases where the content was also signed.
/// is null. /// /// The protocol parameter was not specified. /// -or- /// The multipart is malformed in some way. /// /// The provided does not support the protocol parameter. /// /// The private key could not be found to decrypt the encrypted data. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public Decrypt ( MimeKit.Cryptography.OpenPgpContext ctx, DigitalSignatureCollection &signatures ) : MimeEntity
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for decrypting.
signatures DigitalSignatureCollection A list of digital signatures if the data was both signed and encrypted.
Результат MimeEntity

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// /// One or more of the recipient keys cannot be used for encrypting. /// /// A default has not been registered. /// -or- /// The specified encryption algorithm is not supported. ///
public static Encrypt ( EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
algorithm EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// /// One or more of the recipient keys cannot be used for encrypting. /// /// A default has not been registered. /// -or- /// The specified encryption algorithm is not supported. ///
public static Encrypt ( EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
algorithm EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// /// A default has not been registered. /// /// A public key for one or more of the could not be found. ///
public static Encrypt ( IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// /// One or more of the recipient keys cannot be used for encrypting. /// /// A default has not been registered. ///
public static Encrypt ( IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// One or more of the recipient keys cannot be used for encrypting. /// /// THe specified encryption algorithm is not supported. ///
public static Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for encrypting.
algorithm EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// One or more of the recipient keys cannot be used for encrypting. /// /// THe specified encryption algorithm is not supported. ///
public static Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, EncryptionAlgorithm algorithm, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for encrypting.
algorithm EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// A public key for one or more of the could not be found. ///
public static Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for encrypting.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

Encrypt() публичный статический метод

Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypts the entity to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// One or more of the recipient keys cannot be used for encrypting. ///
public static Encrypt ( MimeKit.Cryptography.OpenPgpContext ctx, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for encrypting.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

MultipartEncrypted() публичный метод

Initializes a new instance of the MimeKit.Cryptography.MultipartEncrypted class.
Creates a new MultipartEncrypted.
public MultipartEncrypted ( ) : System
Результат System

MultipartEncrypted() публичный метод

Initializes a new instance of the MimeKit.Cryptography.MultipartEncrypted class.
This constructor is used by MimeKit.MimeParser.
/// is null. ///
public MultipartEncrypted ( MimeEntityConstructorArgs args ) : System
args MimeEntityConstructorArgs Information used by the constructor.
Результат System

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// cannot be used for signing. /// -or- /// One or more of the recipient keys cannot be used for encrypting. /// -or- /// No recipients were specified. /// /// The was out of range. /// /// A default has not been registered. /// -or- /// The is not supported. /// -or- /// The is not supported. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( MailboxAddress signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
signer MailboxAddress The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
cipherAlgo EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// A default has not been registered. /// /// The private key for could not be found. /// /// A public key for one or more of the could not be found. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
signer MailboxAddress The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// -or- /// is null. /// /// cannot be used for signing. /// -or- /// One or more of the recipient keys cannot be used for encrypting. /// -or- /// No recipients were specified. /// /// The was out of range. /// /// The is not supported. /// -or- /// The is not supported. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for singing and encrypting.
signer MailboxAddress The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
cipherAlgo EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// -or- /// is null. /// /// The private key for could not be found. /// /// A public key for one or more of the could not be found. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, MailboxAddress signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for signing and encrypting.
signer MailboxAddress The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// -or- /// is null. /// /// cannot be used for signing. /// -or- /// One or more of the recipient keys cannot be used for encrypting. /// -or- /// No recipients were specified. /// /// The was out of range. /// /// The is not supported. /// -or- /// The is not supported. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for singing and encrypting.
signer Org.BouncyCastle.Bcpg.OpenPgp.PgpSecretKey The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
cipherAlgo EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// -or- /// is null. /// /// cannot be used for signing. /// -or- /// One or more of the recipient keys cannot be used for encrypting. /// -or- /// No recipients were specified. /// /// The was out of range. /// /// The is not supported. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( MimeKit.Cryptography.OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
ctx MimeKit.Cryptography.OpenPgpContext The OpenPGP cryptography context to use for singing and encrypting.
signer Org.BouncyCastle.Bcpg.OpenPgp.PgpSecretKey The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// cannot be used for signing. /// -or- /// One or more of the recipient keys cannot be used for encrypting. /// -or- /// No recipients were specified. /// /// The was out of range. /// /// A default has not been registered. /// -or- /// The is not supported. /// -or- /// The is not supported. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( PgpSecretKey signer, DigestAlgorithm digestAlgo, EncryptionAlgorithm cipherAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
signer Org.BouncyCastle.Bcpg.OpenPgp.PgpSecretKey The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
cipherAlgo EncryptionAlgorithm The encryption algorithm.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted

SignAndEncrypt() публичный статический метод

Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Signs the entity using the supplied signer and digest algorithm and then encrypts to the specified recipients, encapsulating the result in a new multipart/encrypted part.
/// is null. /// -or- /// is null. /// -or- /// is null. /// /// cannot be used for signing. /// -or- /// One or more of the recipient keys cannot be used for encrypting. /// -or- /// No recipients were specified. /// /// The was out of range. /// /// A default has not been registered. /// -or- /// The is not supported. /// /// The user chose to cancel the password prompt. /// /// 3 bad attempts were made to unlock the secret key. ///
public static SignAndEncrypt ( PgpSecretKey signer, DigestAlgorithm digestAlgo, IEnumerable recipients, MimeEntity entity ) : MultipartEncrypted
signer Org.BouncyCastle.Bcpg.OpenPgp.PgpSecretKey The signer to use to sign the entity.
digestAlgo DigestAlgorithm The digest algorithm to use for signing.
recipients IEnumerable The recipients for the encrypted entity.
entity MimeEntity The entity to sign and encrypt.
Результат MultipartEncrypted