KickJava   Java API By Example, From Geeks To Geeks.

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


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  * "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 JavaDoc generic;
35   String JavaDoc userID;
36   String JavaDoc credential;
37
38   /**
39    *
40    */

41   public GetAuthToken()
42   {
43   }
44
45   /**
46    *
47    */

48   public GetAuthToken(String JavaDoc idValue,String JavaDoc credValue)
49   {
50     this.userID = idValue;
51     this.credential = credValue;
52   }
53
54   /**
55    *
56    * @param genericValue
57    */

58   public void setGeneric(String JavaDoc genericValue)
59   {
60     this.generic = genericValue;
61   }
62
63   /**
64    *
65    * @return String UDDI request's generic value.
66    */

67   public String JavaDoc getGeneric()
68   {
69     return this.generic;
70   }
71
72   /**
73    *
74    */

75   public void setUserID(String JavaDoc idValue)
76   {
77     userID = idValue;
78   }
79
80   /**
81    *
82    */

83   public String JavaDoc getUserID()
84   {
85     return userID;
86   }
87
88   /**
89    *
90    */

91   public void setCredential(String JavaDoc credValue)
92   {
93     credential = credValue;
94   }
95
96   /**
97    *
98    */

99   public String JavaDoc getCredential()
100   {
101     return credential;
102   }
103 }
Popular Tags