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

A secure mailbox address which includes a fingerprint for a certificate.

When signing or encrypting a message, it is necessary to look up the X.509 certificate in order to do the actual sign or encrypt operation. One way of accomplishing this is to use the email address of sender or recipient as a unique identifier. However, a better approach is to use the fingerprint (or 'thumbprint' in Microsoft parlance) of the user's certificate.

Наследование: MailboxAddress
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
SecureMailboxAddress ( IEnumerable route, string address, string fingerprint ) : System

Initializes a new instance of the SecureMailboxAddress class.

Creates a new SecureMailboxAddress with the specified fingerprint.

SecureMailboxAddress ( Portable.Text.Encoding encoding, string name, IEnumerable route, string address, string fingerprint ) : System

Initializes a new instance of the SecureMailboxAddress class.

Creates a new SecureMailboxAddress with the specified fingerprint.

SecureMailboxAddress ( Portable.Text.Encoding encoding, string name, string address, string fingerprint ) : System

Initializes a new instance of the SecureMailboxAddress class.

Creates a new SecureMailboxAddress with the specified fingerprint.

SecureMailboxAddress ( string name, IEnumerable route, string address, string fingerprint ) : System

Initializes a new instance of the SecureMailboxAddress class.

Creates a new SecureMailboxAddress with the specified fingerprint.

SecureMailboxAddress ( string address, string fingerprint ) : System

Initializes a new instance of the SecureMailboxAddress class.

Creates a new SecureMailboxAddress with the specified fingerprint.

SecureMailboxAddress ( string name, string address, string fingerprint ) : System

Initializes a new instance of the SecureMailboxAddress class.

Creates a new SecureMailboxAddress with the specified fingerprint.

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

Метод Описание
ValidateFingerprint ( string fingerprint ) : void

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

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

Initializes a new instance of the SecureMailboxAddress class.
Creates a new SecureMailboxAddress with the specified fingerprint.
/// is null. /// -or- /// is null. /// -or- /// is null. ///
public SecureMailboxAddress ( IEnumerable route, string address, string fingerprint ) : System
route IEnumerable The route of the mailbox.
address string The address of the mailbox.
fingerprint string The fingerprint of the certificate belonging to the owner of the mailbox.
Результат System

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

Initializes a new instance of the SecureMailboxAddress class.
Creates a new SecureMailboxAddress with the specified fingerprint.
/// is null. /// -or- /// is null. /// -or- /// is null. /// -or- /// is null. ///
public SecureMailboxAddress ( Portable.Text.Encoding encoding, string name, IEnumerable route, string address, string fingerprint ) : System
encoding Portable.Text.Encoding The character encoding to be used for encoding the name.
name string The name of the mailbox.
route IEnumerable The route of the mailbox.
address string The address of the mailbox.
fingerprint string The fingerprint of the certificate belonging to the owner of the mailbox.
Результат System

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

Initializes a new instance of the SecureMailboxAddress class.
Creates a new SecureMailboxAddress with the specified fingerprint.
/// is null. /// -or- /// is null. /// -or- /// is null. ///
public SecureMailboxAddress ( Portable.Text.Encoding encoding, string name, string address, string fingerprint ) : System
encoding Portable.Text.Encoding The character encoding to be used for encoding the name.
name string The name of the mailbox.
address string The address of the mailbox.
fingerprint string The fingerprint of the certificate belonging to the owner of the mailbox.
Результат System

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

Initializes a new instance of the SecureMailboxAddress class.
Creates a new SecureMailboxAddress with the specified fingerprint.
/// is null. /// -or- /// is null. /// -or- /// is null. ///
public SecureMailboxAddress ( string name, IEnumerable route, string address, string fingerprint ) : System
name string The name of the mailbox.
route IEnumerable The route of the mailbox.
address string The address of the mailbox.
fingerprint string The fingerprint of the certificate belonging to the owner of the mailbox.
Результат System

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

Initializes a new instance of the SecureMailboxAddress class.
Creates a new SecureMailboxAddress with the specified fingerprint.
/// is null. /// -or- /// is null. ///
public SecureMailboxAddress ( string address, string fingerprint ) : System
address string The address of the mailbox.
fingerprint string The fingerprint of the certificate belonging to the owner of the mailbox.
Результат System

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

Initializes a new instance of the SecureMailboxAddress class.
Creates a new SecureMailboxAddress with the specified fingerprint.
/// is null. /// -or- /// is null. ///
public SecureMailboxAddress ( string name, string address, string fingerprint ) : System
name string The name of the mailbox.
address string The address of the mailbox.
fingerprint string The fingerprint of the certificate belonging to the owner of the mailbox.
Результат System