net.sf.asterisk.manager.action
Class ChallengeAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.ChallengeAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class ChallengeAction
extends AbstractManagerAction

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.

Version:
$Id: ChallengeAction.java,v 1.4 2005/08/07 00:09:42 srt Exp $
Author:
srt
See Also:
LoginAction, ChallengeResponse, Serialized Form

Constructor Summary
ChallengeAction()
          Creates a new empty ChallengeAction.
ChallengeAction(java.lang.String authType)
          Creates a new ChallengeAction that requests a new login challenge for use with the given digest algorithm.
 
Method Summary
 java.lang.String getAction()
          Returns Returns the name of this action, i.e.
 java.lang.String getAuthType()
          Returns the digest alogrithm to use.
 void setAuthType(java.lang.String authType)
          Sets the digest alogrithm to use.
 
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChallengeAction

public ChallengeAction()
Creates a new empty ChallengeAction.


ChallengeAction

public ChallengeAction(java.lang.String authType)
Creates a new ChallengeAction that requests a new login challenge for use with the given digest algorithm.

Parameters:
authType - the digest alogrithm to use.
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Returns Returns the name of this action, i.e. "Challenge".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getAuthType

public java.lang.String getAuthType()
Returns the digest alogrithm to use.


setAuthType

public void setAuthType(java.lang.String authType)
Sets the digest alogrithm to use. Currently asterisk only supports "MD5".



Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.