Class SftpClientFactory
java.lang.Object
org.apache.commons.vfs2.provider.sftp.SftpClientFactory
Create a JSch Session instance.
- 
Method SummaryModifier and TypeMethodDescriptionstatic com.jcraft.jsch.SessioncreateConnection(String hostname, int port, char[] username, char[] password, FileSystemOptions fileSystemOptions) Creates a new connection to the server.
- 
Method Details- 
createConnectionpublic static com.jcraft.jsch.Session createConnection(String hostname, int port, char[] username, char[] password, FileSystemOptions fileSystemOptions) throws FileSystemException Creates a new connection to the server.- Parameters:
- hostname- The name of the host to connect to.
- port- The port to use.
- username- The user's id.
- password- The user's password.
- fileSystemOptions- The FileSystem options.
- Returns:
- A Session, never null.
- Throws:
- FileSystemException- if an error occurs.
 
 
-