Click or drag to resize
MimeKit

SaslMechanism Class

A SASL authentication mechanism.
Inheritance Hierarchy
SystemObject
  MailKit.SecuritySaslMechanism
    More...

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

The SaslMechanism type exposes the following members.

Constructors
  NameDescription
Protected methodSaslMechanism(NetworkCredential)
Initializes a new instance of the SaslMechanism class.
Protected methodSaslMechanism(String, String)
Initializes a new instance of the SaslMechanism class.
Protected methodSaslMechanism(Uri, ICredentials) Obsolete.
Initializes a new instance of the SaslMechanism class.
Protected methodSaslMechanism(Uri, String, String) Obsolete.
Initializes a new instance of the SaslMechanism class.
Top
Properties
  NameDescription
Public propertyCredentials
Gets the user's credentials.
Public propertyIsAuthenticated
Gets or sets whether the SASL mechanism has finished authenticating.
Public propertyMechanismName
Gets the name of the mechanism.
Public propertyNegotiatedSecurityLayer
Gets whether or not a security layer was negotiated.
Public propertySupportsInitialResponse
Gets whether or not the mechanism supports an initial response (SASL-IR).
Top
Methods
  NameDescription
Public methodChallenge(String)
Decodes the base64-encoded server challenge and returns the next challenge response encoded in base64.
Protected methodChallenge(Byte, Int32, Int32)
Parses the server's challenge token and returns the next challenge response.
Public methodStatic memberCreate(String, Uri, ICredentials)
Create an instance of the specified SASL mechanism using the uri and credentials.
Public methodStatic memberCreate(String, Uri, Encoding, ICredentials)
Create an instance of the specified SASL mechanism using the uri and credentials.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsSupported
Determines if the specified SASL mechanism is supported by MailKit.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Resets the state of the SASL mechanism.
Public methodStatic memberSaslPrep
Prepares the user name or password string.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberAuthMechanismRank
The supported authentication mechanisms in order of strongest to weakest.
Top
Remarks
Authenticating via a SASL mechanism may be a multi-step process. To determine if the mechanism has completed the necessary steps to authentication, check the IsAuthenticated after each call to Challenge(String).
See Also
Inheritance Hierarchy