KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > IUserInfo


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;
12
13
14 /**
15  * Instances of this class represent a username password pair.
16  * Both values can be set and the username can be retrieved.
17  * However, it is possible that the username is not mutable.
18  * Users must check before trying to set the username.
19  *
20  * Clients are not expected to implement this interface
21  */

22 public interface IUserInfo {
23     /**
24      * Get the username for this user.
25      */

26     public String JavaDoc getUsername();
27     /**
28      * Return true if the username is mutable. If not, setUsername should not be called.
29      */

30     public boolean isUsernameMutable();
31     /**
32      * Sets the password for this user.
33      */

34     public void setPassword(String JavaDoc password);
35     /**
36      * Sets the username for this user. This should not be called if
37      * isUsernameMutable() returns false.
38      */

39     public void setUsername(String JavaDoc username);
40 }
41
Popular Tags