Click or drag to resize
MimeKit

SaslMechanismPlain Class

The PLAIN SASL mechanism.
Inheritance Hierarchy
SystemObject
  MailKit.SecuritySaslMechanism
    MailKit.SecuritySaslMechanismPlain

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public class SaslMechanismPlain : SaslMechanism

The SaslMechanismPlain type exposes the following members.

Constructors
 NameDescription
Public methodSaslMechanismPlain(NetworkCredential) Initializes a new instance of the SaslMechanismPlain class.
Public methodSaslMechanismPlain(Encoding, NetworkCredential) Initializes a new instance of the SaslMechanismPlain class.
Public methodSaslMechanismPlain(String, String) Initializes a new instance of the SaslMechanismPlain class.
Public methodSaslMechanismPlain(Encoding, String, String) Initializes a new instance of the SaslMechanismPlain class.
Top
Properties
 NameDescription
Public propertyAuthorizationId Get or set the authorization identifier.
Public propertyCredentials Get the user's credentials.
(Inherited from SaslMechanism)
Public propertyIsAuthenticated Get or set whether the SASL mechanism has finished authenticating.
(Inherited from SaslMechanism)
Public propertyMechanismName Get the name of the SASL mechanism.
(Overrides SaslMechanismMechanismName)
Public propertyNegotiatedChannelBinding Get whether or not channel-binding was negotiated by the SASL mechanism.
(Inherited from SaslMechanism)
Public propertyNegotiatedSecurityLayer Get whether or not a security layer was negotiated by the SASL mechanism.
(Inherited from SaslMechanism)
Public propertySupportsChannelBinding Get whether or not the SASL mechanism supports channel binding.
(Inherited from SaslMechanism)
Public propertySupportsInitialResponse Get whether or not the mechanism supports an initial response (SASL-IR).
(Overrides SaslMechanismSupportsInitialResponse)
Top
Methods
 NameDescription
Public methodChallenge(String, CancellationToken) Decode the base64-encoded server challenge and return the next challenge response encoded in base64.
(Inherited from SaslMechanism)
Protected methodChallenge(Byte, Int32, Int32, CancellationToken) Parse the server's challenge token and return the next challenge response.
(Overrides SaslMechanismChallenge(Byte, Int32, Int32, CancellationToken))
Public methodChallengeAsync(String, CancellationToken) Asynchronously decode the base64-encoded server challenge and return the next challenge response encoded in base64.
(Inherited from SaslMechanism)
Protected methodChallengeAsync(Byte, Int32, Int32, CancellationToken) Asynchronously parse the server's challenge token and return the next challenge response.
(Inherited from SaslMechanism)
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodReset Reset the state of the SASL mechanism.
(Inherited from SaslMechanism)
Public methodToString
(Inherited from Object)
Protected methodTryGetChannelBindingToken Try to get a channel-binding token.
(Inherited from SaslMechanism)
Top
Remarks
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.
See Also