2 Copyright Paul James Mutton, 2001-2004, http://www.jibble.org/
4 This file is part of JBouncer.
6 This software is dual-licensed, allowing you to choose between the GNU
7 General Public License (GPL) and the www.jibble.org Commercial License.
8 Since the GPL may be too restrictive for use in a proprietary application,
9 a commercial license is also provided. Full license information can be
10 found at http://www.jibble.org/licenses/
13 $Id: User.java,v 1.2 2004/03/01 19:13:37 pjm2 Exp $
21 public User(String login
, String password
) {
23 this.password
= password
;
26 public String
getLogin() {
30 public String
getPassword() {
34 public int hashCode() {
35 return login
.hashCode() + password
.hashCode();
38 public boolean equals(Object o
) {
39 User other
= (User
) o
;
40 return other
.login
.equals(login
) && other
.password
.equals(password
);
44 private String password
;