KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > connection > UserInfo


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.ccvs.core.connection;
12
13  
14 import org.eclipse.team.internal.ccvs.core.IUserInfo;
15
16 /**
17  * @version 1.0
18  * @author
19  */

20 public class UserInfo implements IUserInfo {
21
22     private String JavaDoc username;
23     private String JavaDoc password;
24     private boolean isUsernameMutable;
25     
26     protected UserInfo(String JavaDoc username, String JavaDoc password, boolean isUsernameMutable) {
27         this.username = username;
28         this.password = password;
29         this.isUsernameMutable = isUsernameMutable;
30     }
31     
32     /*
33      * @see IUserInfo#getUsername()
34      */

35     public String JavaDoc getUsername() {
36         return username;
37     }
38
39     protected String JavaDoc getPassword() {
40         return password;
41     }
42     
43     /*
44      * @see IUserInfo#isUsernameMutable()
45      */

46     public boolean isUsernameMutable() {
47         return isUsernameMutable;
48     }
49
50     /*
51      * @see IUserInfo#setPassword(String)
52      */

53     public void setPassword(String JavaDoc password) {
54         this.password = password;
55     }
56
57     /*
58      * @see IUserInfo#setUsername(String)
59      */

60     public void setUsername(String JavaDoc username) {
61         this.username = username;
62     }
63
64 }
65
Popular Tags