View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
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  }