View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
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  package org.apache.juddi.datatype.response;
17  
18  import org.apache.juddi.datatype.RegistryObject;
19  import org.apache.juddi.datatype.request.AuthInfo;
20  
21  /***
22   * Contains a single authInfo element that contains an access token that is to
23   * be passed back in all of the publisher API messages that change data. This
24   * message is always returned using SSL encryption as a synchronous response
25   * to the get_authToken message.
26   *
27   * @author Steve Viens (sviens@apache.org)
28   */
29  public class AuthToken implements RegistryObject
30  {
31    String generic;
32    String operator;
33    AuthInfo authInfo;
34  
35    /***
36     *
37     */
38    public AuthToken()
39    {
40    }
41  
42    /***
43     *
44     */
45    public AuthToken(AuthInfo authInfo)
46    {
47      setAuthInfo(authInfo);
48    }
49  
50    /***
51     *
52     * @param genericValue
53     */
54    public void setGeneric(String genericValue)
55    {
56      this.generic = genericValue;
57    }
58  
59    /***
60     *
61     * @return String UDDI generic value.
62     */
63    public String getGeneric()
64    {
65      return this.generic;
66    }
67  
68    /***
69     *
70     */
71    public void setOperator(String operator)
72    {
73      this.operator = operator;
74    }
75  
76    /***
77     *
78     */
79    public String getOperator()
80    {
81       return this.operator;
82    }
83  
84    /***
85     *
86     */
87    public void setAuthInfo(AuthInfo authInfo)
88    {
89      this.authInfo = authInfo;
90    }
91  
92    /***
93     *
94     */
95    public AuthInfo getAuthInfo()
96    {
97      return this.authInfo;
98    }
99  }