public final class SftpClientFactory extends Object
Modifier and Type | Method and Description |
---|---|
static com.jcraft.jsch.Session |
createConnection(String hostname,
int port,
char[] username,
char[] password,
FileSystemOptions fileSystemOptions)
Creates a new connection to the server.
|
public static com.jcraft.jsch.Session createConnection(String hostname, int port, char[] username, char[] password, FileSystemOptions fileSystemOptions) throws FileSystemException
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.FileSystemException
- if an error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.