1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.response;
18
19 /***
20 * Corresponds to a ChallengeAction and contains the challenge needed to log in using
21 * challenge/response.
22 *
23 * @see net.sf.asterisk.manager.action.ChallengeAction
24 * @see net.sf.asterisk.manager.action.LoginAction
25 *
26 * @author srt
27 * @version $Id: ChallengeResponse.java,v 1.2 2005/02/23 22:50:58 srt Exp $
28 */
29 public class ChallengeResponse extends ManagerResponse
30 {
31 /***
32 * Serial version identifier
33 */
34 static final long serialVersionUID = -7253724086340850957L;
35
36 private String challenge;
37
38 /***
39 * Returns the challenge to use when creating the key for log in.
40 *
41 * @see net.sf.asterisk.manager.action.LoginAction#key
42 */
43 public String getChallenge()
44 {
45 return challenge;
46 }
47
48 /***
49 * Sets the challenge to use when creating the key for log in.
50 */
51 public void setChallenge(String challenge)
52 {
53 this.challenge = challenge;
54 }
55 }