public interface SimpleSftpClient
extends java.nio.channels.Channel
Modifier and Type | Method and Description |
---|---|
default SftpClient |
sftpLogin(java.net.InetAddress host,
int port,
java.lang.String username,
java.security.KeyPair identity)
Creates an SFTP session using the provided credentials
|
default SftpClient |
sftpLogin(java.net.InetAddress host,
int port,
java.lang.String username,
java.lang.String password)
Creates an SFTP session using the provided credentials
|
default SftpClient |
sftpLogin(java.net.InetAddress host,
java.lang.String username,
java.security.KeyPair identity)
Creates an SFTP session on the default port and logs in using the provided credentials
|
default SftpClient |
sftpLogin(java.net.InetAddress host,
java.lang.String username,
java.lang.String password)
Creates an SFTP session on the default port and logs in using the provided credentials
|
SftpClient |
sftpLogin(java.net.SocketAddress target,
java.lang.String username,
java.security.KeyPair identity)
Creates an SFTP session using the provided credentials
|
SftpClient |
sftpLogin(java.net.SocketAddress target,
java.lang.String username,
java.lang.String password)
Creates an SFTP session using the provided credentials
|
default SftpClient |
sftpLogin(java.lang.String host,
int port,
java.lang.String username,
java.security.KeyPair identity)
Creates an SFTP session using the provided credentials
|
default SftpClient |
sftpLogin(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Creates an SFTP session using the provided credentials
|
default SftpClient |
sftpLogin(java.lang.String host,
java.lang.String username,
java.security.KeyPair identity)
Creates an SFTP session on the default port and logs in using the provided credentials
|
default SftpClient |
sftpLogin(java.lang.String host,
java.lang.String username,
java.lang.String password)
Creates an SFTP session on the default port and logs in using the provided credentials
|
default SftpClient sftpLogin(java.lang.String host, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host name or addressusername
- Usernamepassword
- PasswordSftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticatedefault SftpClient sftpLogin(java.lang.String host, int port, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host name or addressport
- The target portusername
- Usernamepassword
- PasswordSftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticatedefault SftpClient sftpLogin(java.lang.String host, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host name or addressusername
- Usernameidentity
- The KeyPair
identitySftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticatedefault SftpClient sftpLogin(java.lang.String host, int port, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host name or addressport
- The target portusername
- Usernameidentity
- The KeyPair
identitySftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticatedefault SftpClient sftpLogin(java.net.InetAddress host, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host InetAddress
username
- Usernamepassword
- PasswordSftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticatedefault SftpClient sftpLogin(java.net.InetAddress host, int port, java.lang.String username, java.lang.String password) throws java.io.IOException
host
- The target host InetAddress
port
- The target portusername
- Usernamepassword
- PasswordSftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticatedefault SftpClient sftpLogin(java.net.InetAddress host, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host InetAddress
username
- Usernameidentity
- The KeyPair
identitySftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticatedefault SftpClient sftpLogin(java.net.InetAddress host, int port, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
host
- The target host InetAddress
port
- The target portusername
- Usernameidentity
- The KeyPair
identitySftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticateSftpClient sftpLogin(java.net.SocketAddress target, java.lang.String username, java.lang.String password) throws java.io.IOException
target
- The target SocketAddress
username
- Usernamepassword
- PasswordSftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticateSftpClient sftpLogin(java.net.SocketAddress target, java.lang.String username, java.security.KeyPair identity) throws java.io.IOException
target
- The target SocketAddress
username
- Usernameidentity
- The KeyPair
identitySftpClient
- Note: closing the client also closes its underlying
sessionjava.io.IOException
- If failed to login or authenticate