This project has retired. For details please refer to its Attic page.
User xref
View Javadoc
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 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.apache.juddi.v3.auth;
18  
19  import javax.xml.bind.annotation.XmlAttribute;
20  import javax.xml.bind.annotation.XmlRootElement;
21  
22  /**
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")
28  public class User {
29  	
30  	private String userid;
31  	private String password;
32  	
33  	public User() {}
34  	
35  	public User(String userid, String password) {
36  		super();
37  		this.userid = userid;
38  		this.password = password;
39  	}
40  	
41  	@XmlAttribute
42  	public String getUserid() {
43  		return userid;
44  	}
45  
46  	public void setUserid(String userid) {
47  		this.userid = userid;
48  	}
49  
50  	@XmlAttribute
51  	public String getPassword() {
52  		return password;
53  	}
54  
55  	public void setPassword(String password) {
56  		this.password = password;
57  	}
58  
59  	public String toString()
60  	{
61  		StringBuffer buff = new StringBuffer(75);
62  		buff.append(userid);
63  		buff.append(" | ");
64  		buff.append(password);
65  		return buff.toString();
66  	}
67  	
68  }