Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2007 JCraft,Inc. 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: Atsuhiko Yamanaka, JCraft,Inc. - initial API and implementation /
package org.eclipse.jsch.core;
This interface provides access to the specific portions of the location string for use by ssh2 connection and the user authenticator. This interface is not intended to be implemented by clients.

public interface IJSchLocation{

  
port value which indicates to a connection method to use the default port
  public static int USE_DEFAULT_PORT=0;

  
Returns the host where the repository is located

Returns:
host name
  public String getHost();

  
Returns the port to connect to or USE_DEFAULT_PORT if the connection method is to use its default port.

Returns:
port number
  public int getPort();

  
Sets the user information used for this location

Parameters:
username user name
  public void setUsername(String username);

  
Return the user name

Returns:
user name
  public String getUsername();

  
Sets the user password used for this location

Parameters:
password password
  public void setPassword(String password);

  
Return the password

Returns:
password
  public String getPassword();

  
Sets the comment for this location. This comment will be displayed in prompting for the password.

Parameters:
comment
  public void setComment(String comment);

  
Return the comment

Returns:
comment
  public String getComment();

  
Sets the password store used for this location

Parameters:
store password store
  public void setPasswordStore(IPasswordStore store);

  
Return the password store.

Returns:
password store.
New to GrepCode? Check out our FAQ X