1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
24
25
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 }