KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > rift > coad > lib > interceptor > credentials > Login


1 /*
2  * CoadunationClient: The client libraries for Coadunation. (RMI/CORBA)
3  * Copyright (C) 2006 Rift IT Contracting
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
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 JavaDoc password = null;
35     
36     /**
37      * Creates a new instance of Login
38      */

39     public Login() {
40     }
41     
42     
43     /**
44      * The constructor responsible for setting the private member variables.
45      *
46      * @param username The name of the user.
47      * @param password The password to authenticate the user.
48      */

49     public Login(String JavaDoc username, String JavaDoc password) {
50         super(username);
51         this.password = password;
52     }
53     
54     
55     /**
56      * Sets the password for the given user.
57      *
58      * @param password The password to set.
59      */

60     public void setPassword(String JavaDoc password) {
61         this.password = password;
62     }
63     
64     
65     /**
66      * Retrieves the password for the user.
67      */

68     public String JavaDoc getPassword() {
69         return password;
70     }
71 }
72
Popular Tags