Package org.eclipse.jsch.core
Interface IJSchLocation
public interface IJSchLocation
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.
- Since:
- 1.1
- See Also:
-
IUserAuthenticator
IPasswordStore
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
port value which indicates to a connection method to use the default port -
Method Summary
Modifier and TypeMethodDescriptionReturn the commentgetHost()
Returns the host where the repository is locatedReturn the passwordReturn the password store.int
getPort()
Returns the port to connect to or USE_DEFAULT_PORT if the connection method is to use its default port.Return the user namevoid
setComment
(String comment) Sets the comment for this location.void
setPassword
(String password) Sets the user password used for this locationvoid
setPasswordStore
(IPasswordStore store) Sets the password store used for this locationvoid
setUsername
(String username) Sets the user information used for this location
-
Field Details
-
USE_DEFAULT_PORT
static final int USE_DEFAULT_PORTport value which indicates to a connection method to use the default port- See Also:
-
-
Method Details
-
getHost
String getHost()Returns the host where the repository is located- Returns:
- host name
-
getPort
int getPort()Returns the port to connect to or USE_DEFAULT_PORT if the connection method is to use its default port.- Returns:
- port number
-
setUsername
Sets the user information used for this location- Parameters:
username
- user name
-
getUsername
String getUsername()Return the user name- Returns:
- user name
-
setPassword
Sets the user password used for this location- Parameters:
password
- password
-
getPassword
String getPassword()Return the password- Returns:
- password
-
setComment
Sets the comment for this location. This comment will be displayed in prompting for the password.- Parameters:
comment
- Comment to be displayed in password prompt.
-
getComment
String getComment()Return the comment- Returns:
- Comment to be displayed in password prompt.
-
setPasswordStore
Sets the password store used for this location- Parameters:
store
- password store
-
getPasswordStore
IPasswordStore getPasswordStore()Return the password store.- Returns:
- password store.
-