namespace AsterNET.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
{
///
/// Creates a new empty ChallengeAction with MD5 algorithm
///
public ChallengeAction()
{
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)
{
AuthType = authType;
}
///
/// Get the name of this action, i.e. "Challenge".
///
public override string Action
{
get { return "Challenge"; }
}
///
/// Get/Set the digest alogrithm to use. Currently asterisk only supports "MD5".
///
public string AuthType { get; set; }
}
}