1/*2 * Copyright 2001-2009 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 at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 *16 */17package org.apache.juddi.v3.auth;
1819import javax.xml.bind.annotation.XmlAttribute;
20import javax.xml.bind.annotation.XmlRootElement;
2122/**23 * User object which contains the userid (publisherId) and a password credential.24 * 25 * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>26 */27 @XmlRootElement(name="user")
28publicclassUser {
2930private String userid;
31private String password;
3233publicUser() {}
3435publicUser(String userid, String password) {
36super();
37this.userid = userid;
38this.password = password;
39 }
4041 @XmlAttribute
42public String getUserid() {
43return userid;
44 }
4546publicvoid setUserid(String userid) {
47this.userid = userid;
48 }
4950 @XmlAttribute
51public String getPassword() {
52return password;
53 }
5455publicvoid setPassword(String password) {
56this.password = password;
57 }
5859public String toString()
60 {
61 StringBuffer buff = new StringBuffer(75);
62 buff.append(userid);
63 buff.append(" | ");
64 buff.append(password);
65return buff.toString();
66 }
6768 }