KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > request > AuthInfo


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.request;
17
18 import org.apache.juddi.datatype.RegistryObject;
19
20 /**
21  * Authentication info is used in calls to the Publish API, the content of an
22  * AuthToken. It contains an access token that is to be passed back in all of
23  * the publisher API messages that change data.
24  *
25  * @author Steve Viens (sviens@apache.org)
26  */

27 public class AuthInfo implements RegistryObject
28 {
29   String JavaDoc value;
30
31   /**
32    * Constructs a new initialized authentication info.
33    */

34   public AuthInfo()
35   {
36   }
37
38   /**
39    * Constructs a new authentication info with the given access token.
40    * @param auth The access token of the new authentication info.
41    */

42   public AuthInfo(String JavaDoc auth)
43   {
44     this.value = auth;
45   }
46
47   /**
48    * Sets the access token of this authentication info.
49    * @param newValue The new value of the access token.
50    */

51   public void setValue(String JavaDoc newValue)
52   {
53     this.value = newValue;
54   }
55
56   /**
57    * Returns the value of the access token of this authentication info.
58    * @return The value of the access token of this authentication info.
59    */

60   public String JavaDoc getValue()
61   {
62     return this.value;
63   }
64 }
Popular Tags