C# Класс MailKit.Security.SaslMechanismLogin

The LOGIN SASL mechanism.
The LOGIN SASL mechanism provides little protection over the use of plain-text passwords by obscuring the user name and password within individual base64-encoded blobs and should be avoided unless used in combination with an SSL or TLS connection.
Наследование: SaslMechanism
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Reset ( ) : void

Resets the state of the SASL mechanism.

Resets the state of the SASL mechanism.

SaslMechanismLogin ( Uri uri, ICredentials credentials ) : System

Initializes a new instance of the MailKit.Security.SaslMechanismLogin class.

Creates a new LOGIN SASL context.

SaslMechanismLogin ( Uri uri, Portable.Text.Encoding encoding, ICredentials credentials ) : System

Initializes a new instance of the MailKit.Security.SaslMechanismLogin class.

Creates a new LOGIN SASL context.

Защищенные методы

Метод Описание
Challenge ( byte token, int startIndex, int length ) : byte[]

Parses the server's challenge token and returns the next challenge response.

Parses the server's challenge token and returns the next challenge response.

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

Challenge() защищенный Метод

Parses the server's challenge token and returns the next challenge response.
Parses the server's challenge token and returns the next challenge response.
/// The SASL mechanism is already authenticated. /// /// The SASL mechanism does not support SASL-IR. /// /// An error has occurred while parsing the server's challenge token. ///
protected Challenge ( byte token, int startIndex, int length ) : byte[]
token byte The server's challenge token.
startIndex int The index into the token specifying where the server's challenge begins.
length int The length of the server's challenge.
Результат byte[]

Reset() публичный Метод

Resets the state of the SASL mechanism.
Resets the state of the SASL mechanism.
public Reset ( ) : void
Результат void

SaslMechanismLogin() публичный Метод

Initializes a new instance of the MailKit.Security.SaslMechanismLogin class.
Creates a new LOGIN SASL context.
/// is null. /// -or- /// is null. ///
public SaslMechanismLogin ( Uri uri, ICredentials credentials ) : System
uri System.Uri The URI of the service.
credentials ICredentials The user's credentials.
Результат System

SaslMechanismLogin() публичный Метод

Initializes a new instance of the MailKit.Security.SaslMechanismLogin class.
Creates a new LOGIN SASL context.
/// is null. /// -or- /// is null. /// -or- /// is null. ///
public SaslMechanismLogin ( Uri uri, Portable.Text.Encoding encoding, ICredentials credentials ) : System
uri System.Uri The URI of the service.
encoding Portable.Text.Encoding The encoding to use for the user's credentials.
credentials ICredentials The user's credentials.
Результат System