using System; namespace Asterisk.NET.Manager.Action { /// /// The ChallengeAction requests a challenge from the server to use when logging /// in using challenge/response. Sending this action to the asterisk server /// results in a ChallengeResponse being received from the server. /// /// /// public class ChallengeAction : ManagerAction { private string authType; /// /// Get the name of this action, i.e. "Challenge". /// override public string Action { get { return "Challenge"; } } /// /// Get/Set the digest alogrithm to use. Currently asterisk only supports "MD5". /// public string AuthType { get { return this.authType; } set { this.authType = value; } } /// /// Creates a new empty ChallengeAction with MD5 algorithm /// public ChallengeAction() { this.authType = "MD5"; } /// /// Creates a new ChallengeAction that requests a new login challenge for use /// with the given digest algorithm. /// /// the digest alogrithm to use. public ChallengeAction(string authType) { this.authType = authType; } } }