1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.team.internal.ccvs.core; 15 16 17 /** 18 * Instances of this class represent a username password pair. 19 * Both values can be set and the username can be retrieved. 20 * However, it is possible that the username is not mutable. 21 * Users must check before trying to set the username. 22 * 23 * Clients are not expected to implement this interface 24 */ 25 public interface IUserInfo { 26 /** 27 * Get the username for this user. 28 */ getUsername()29 public String getUsername(); 30 /** 31 * Return true if the username is mutable. If not, setUsername should not be called. 32 */ isUsernameMutable()33 public boolean isUsernameMutable(); 34 /** 35 * Sets the password for this user. 36 */ setPassword(String password)37 public void setPassword(String password); 38 /** 39 * Sets the username for this user. This should not be called if 40 * isUsernameMutable() returns false. 41 */ setUsername(String username)42 public void setUsername(String username); 43 } 44