1 /*
2 * Copyright 2001-2008 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 */
17 package org.uddi.api_v3;
18
19 import java.io.Serializable;
20
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlAttribute;
24 import javax.xml.bind.annotation.XmlTransient;
25 import javax.xml.bind.annotation.XmlType;
26
27 /**
28 * <p>
29 * Java class for get_authToken complex type.
30 *
31 * <p>
32 * The following schema fragment specifies the expected content contained within
33 * this class.
34 *
35 * <pre>
36 * <complexType name="get_authToken">
37 * <complexContent>
38 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39 * <attribute name="userID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
40 * <attribute name="cred" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
41 * </restriction>
42 * </complexContent>
43 * </complexType>
44 * </pre>
45 *
46 *
47 */
48 @XmlAccessorType(XmlAccessType.FIELD)
49 @XmlType(name = "get_authToken")
50 public class GetAuthToken implements Serializable {
51
52 public GetAuthToken() {
53 }
54
55 /**
56 * @since 3.3
57 * @param username
58 * @param password
59 */
60 public GetAuthToken(String username, String password) {
61 this.userID = username;
62 this.cred = password;
63 }
64 @XmlTransient
65 private static final long serialVersionUID = -2736132681478711038L;
66 @XmlAttribute(required = true)
67 protected String userID;
68 @XmlAttribute(required = true)
69 protected String cred;
70
71 /**
72 * Gets the value of the userID property.
73 *
74 * @return possible object is {@link String }
75 *
76 */
77 public String getUserID() {
78 return userID;
79 }
80
81 /**
82 * Sets the value of the userID property.
83 *
84 * @param value allowed object is {@link String }
85 *
86 */
87 public void setUserID(String value) {
88 this.userID = value;
89 }
90
91 /**
92 * Gets the value of the cred property.
93 *
94 * @return possible object is {@link String }
95 *
96 */
97 public String getCred() {
98 return cred;
99 }
100
101 /**
102 * Sets the value of the cred property.
103 *
104 * @param value allowed object is {@link String }
105 *
106 */
107 public void setCred(String value) {
108 this.cred = value;
109 }
110
111 }