org.apache.commons.vfs2.provider.sftp
Class SftpClientFactory

java.lang.Object
  extended by org.apache.commons.vfs2.provider.sftp.SftpClientFactory

public final class SftpClientFactory
extends Object

Create a JSch Session instance.

Version:
$Revision: 1040766 $ $Date: 2010-12-01 02:06:53 +0530 (Wed, 01 Dec 2010) $
Author:
Commons VFS team

Nested Class Summary
static class SftpClientFactory.JSchLogger
           
 
Method Summary
static com.jcraft.jsch.Session createConnection(String hostname, int port, char[] username, char[] password, FileSystemOptions fileSystemOptions)
          Creates a new connection to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createConnection

public 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.
Throws:
FileSystemException - if an error occurs.


Copyright © 2002–2015 WSO2. All rights reserved.