blob: 110aeedcb6310689a5cacbac8db1c2cca544b1f8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.internal.ccvs.core.connection;
import org.eclipse.team.internal.ccvs.core.IUserInfo;
/**
* @version 1.0
* @author
*/
public class UserInfo implements IUserInfo {
private String username;
private String password;
private boolean isUsernameMutable;
protected UserInfo(String username, String password, boolean isUsernameMutable) {
this.username = username;
this.password = password;
this.isUsernameMutable = isUsernameMutable;
}
/*
* @see IUserInfo#getUsername()
*/
public String getUsername() {
return username;
}
protected String getPassword() {
return password;
}
/*
* @see IUserInfo#isUsernameMutable()
*/
public boolean isUsernameMutable() {
return false;
}
/*
* @see IUserInfo#setPassword(String)
*/
public void setPassword(String password) {
this.password = password;
}
/*
* @see IUserInfo#setUsername(String)
*/
public void setUsername(String username) {
this.username = username;
}
}