1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 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 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 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 getValue()
61 {
62 return this.value;
63 }
64 }