C# Class MailKit.Security.SaslMechanismPlain

The PLAIN SASL mechanism.
The PLAIN SASL mechanism provides little protection over the use of plain-text passwords by combining the user name and password and obscuring them within a base64-encoded blob and should be avoided unless used in combination with an SSL or TLS connection.
Inheritance: SaslMechanism
Afficher le fichier Open project: jstedfast/MailKit Class Usage Examples

Méthodes publiques

Méthode Description
SaslMechanismPlain ( Uri uri, ICredentials credentials ) : System

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

Creates a new PLAIN SASL context.

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

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

Creates a new PLAIN SASL context.

Méthodes protégées

Méthode Description
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.

Method Details

Challenge() protected méthode

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. /// /// 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.
Résultat byte[]

SaslMechanismPlain() public méthode

Initializes a new instance of the MailKit.Security.SaslMechanismPlain class.
Creates a new PLAIN SASL context.
/// is null. /// -or- /// is null. ///
public SaslMechanismPlain ( Uri uri, ICredentials credentials ) : System
uri System.Uri The URI of the service.
credentials ICredentials The user's credentials.
Résultat System

SaslMechanismPlain() public méthode

Initializes a new instance of the MailKit.Security.SaslMechanismPlain class.
Creates a new PLAIN SASL context.
/// is null. /// -or- /// is null. /// -or- /// is null. ///
public SaslMechanismPlain ( 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.
Résultat System