Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c979d58dafe9d03d8a92d7c5ade55e1eef3e46d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2000, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Atsuhiko Yamanaka, JCraft,Inc. - copying this class from cvs.core plug-in
 *******************************************************************************/
package org.eclipse.jsch.internal.core;
/**
 * Instances of this class represent a user name password pair.
 * Both values can be set and the user name can be retrieved.
 * However, it is possible that the user name is not mutable.
 * Users must check before trying to set the user name.
 * 
 * Clients are not expected to implement this interface
 * @since 1.1
 */
public interface IUserInfo{
  /**
   * Get the user name for this user.
   * @return user name
   */
  public String getUsername();

  /**
   * Sets the user name for this user. This should not be called if
   * isUsernameMutable() returns false.
   * @param username a user name for this user
   */
  public void setUsername(String username);

  /**
   * Return true if the user name is mutable. If not, setUsername should not be called.
   * @return a flag for isUsernameMutable
   */
  public boolean isUsernameMutable();

  /**
   * Sets the password for this user.
   * @param password a password for this user
   */
  public void setPassword(String password);
}

Back to the top