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 * "Used to request an authentication token from an Operator Site.
22 * Authentication tokens are required to use all other APIs defined
23 * in the publishers API. This server serves as the program's
24 * equivalent of a login request."
25 *
26 * <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2"
27 * userID="someLoginName"
28 * cred="someCredential" />
29 *
30 * @author Steve Viens (sviens@apache.org)
31 */
32 public class GetAuthToken implements RegistryObject,SecurityPolicy
33 {
34 String generic;
35 String userID;
36 String credential;
37
38 /***
39 *
40 */
41 public GetAuthToken()
42 {
43 }
44
45 /***
46 *
47 */
48 public GetAuthToken(String idValue,String credValue)
49 {
50 this.userID = idValue;
51 this.credential = credValue;
52 }
53
54 /***
55 *
56 * @param genericValue
57 */
58 public void setGeneric(String genericValue)
59 {
60 this.generic = genericValue;
61 }
62
63 /***
64 *
65 * @return String UDDI request's generic value.
66 */
67 public String getGeneric()
68 {
69 return this.generic;
70 }
71
72 /***
73 *
74 */
75 public void setUserID(String idValue)
76 {
77 userID = idValue;
78 }
79
80 /***
81 *
82 */
83 public String getUserID()
84 {
85 return userID;
86 }
87
88 /***
89 *
90 */
91 public void setCredential(String credValue)
92 {
93 credential = credValue;
94 }
95
96 /***
97 *
98 */
99 public String getCredential()
100 {
101 return credential;
102 }
103 }