using System; using System.Collections.Generic; using System.Text; namespace FastReport.Messaging.Authentication.Sasl { /// /// The DIGEST-MD5 SASL authentication mechanism. /// public class DigestMd5Mechanism : SaslMechanism { #region Constants /// /// The mechanism name. /// public const string MECHANISM_NAME = "DIGEST-MD5"; #endregion // Constants #region Constructors /// /// Initializes a new instance of the class. /// /// The username. /// The user's password. public DigestMd5Mechanism(string username, string password) { Name = MECHANISM_NAME; Username = username; Password = password; } #endregion // Constructors #region Protected Methods /// protected override byte[] ComputeResponse(byte[] challenge) { throw new Exception("The method or operation is not implemented."); } #endregion // Protected Methods } }