01: /*
02: * CoadunationClient: The client libraries for Coadunation. (RMI/CORBA)
03: * Copyright (C) 2006 Rift IT Contracting
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18: *
19: * Login.java
20: *
21: * This class defines the login information.
22: */
23:
24: // package path
25: package com.rift.coad.lib.interceptor.credentials;
26:
27: /**
28: * This class defines the login information.
29: *
30: * @author Brett Chaldecott
31: */
32: public class Login extends Credential {
33: // private member variables
34: private String password = null;
35:
36: /**
37: * Creates a new instance of Login
38: */
39: public Login() {
40: }
41:
42: /**
43: * The constructor responsible for setting the private member variables.
44: *
45: * @param username The name of the user.
46: * @param password The password to authenticate the user.
47: */
48: public Login(String username, String password) {
49: super (username);
50: this .password = password;
51: }
52:
53: /**
54: * Sets the password for the given user.
55: *
56: * @param password The password to set.
57: */
58: public void setPassword(String password) {
59: this .password = password;
60: }
61:
62: /**
63: * Retrieves the password for the user.
64: */
65: public String getPassword() {
66: return password;
67: }
68: }
|