public class SftpSession extends Object implements IConfigurable
Modifier and Type | Class and Description |
---|---|
static class |
SftpSession.TransportType |
Constructor and Description |
---|
SftpSession() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
close(com.jcraft.jsch.ChannelSftp sftpClient) |
void |
configure() |
com.jcraft.jsch.ChannelSftp |
openClient(String remoteDirectory) |
void |
setAuthAlias(String string)
Name of the alias to obtain credentials to authenticatie on remote server
|
void |
setHost(String string)
Name or ip address of remote host
|
void |
setKnownHostsPath(String string)
Path to file with knownhosts
|
void |
setName(String name)
The functional name of the object.
|
void |
setPassword(String string)
Password to authenticatie on remote server
|
void |
setPort(int i)
Port number of remote host
|
void |
setPrefCSEncryption(String string)
Optional preferred encryption from client to server for sftp protocol
|
void |
setPrefSCEncryption(String string)
Optional preferred encryption from server to client for sftp protocol
|
void |
setPrivateKeyAuthAlias(String string)
Name of the alias to obtain credentials for passphrase of private key file
|
void |
setPrivateKeyFilePath(String string)
Path to private key file for sftp authentication
|
void |
setPrivateKeyPassword(String password)
Passphrase of private key file
|
void |
setProxyAuthAlias(String string)
alias to obtain credentials to authenticate on proxy
|
void |
setProxyHost(String string)
Proxy hostname
|
void |
setProxyPassword(String string)
Default password in case proxy requires authentication
|
void |
setProxyPort(int i)
Proxy port
|
void |
setProxyTransportType(SftpSession.TransportType type)
Transport type in case of sftp
|
void |
setProxyUsername(String string)
Default user name in case proxy requires authentication
|
void |
setStrictHostKeyChecking(boolean b)
Verify the hosts againt the knownhosts file.
|
void |
setUsername(String string)
Name of the user to authenticatie on remote server
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
getApplicationContext, getName
getConfigurationClassLoader
public void configure() throws ConfigurationException
configure
in interface IConfigurable
ConfigurationException
public com.jcraft.jsch.ChannelSftp openClient(String remoteDirectory) throws FtpConnectException
FtpConnectException
public static void close(com.jcraft.jsch.ChannelSftp sftpClient)
public void close()
public void setHost(String string)
public void setPort(int i)
public void setAuthAlias(String string)
public void setUsername(String string)
public void setPassword(String string)
public void setProxyHost(String string)
public void setProxyPort(int i)
public void setProxyAuthAlias(String string)
public void setProxyUsername(String string)
public void setProxyPassword(String string)
public void setProxyTransportType(SftpSession.TransportType type)
public void setPrefCSEncryption(String string)
public void setPrefSCEncryption(String string)
public void setPrivateKeyFilePath(String string)
public void setPrivateKeyAuthAlias(String string)
public void setPrivateKeyPassword(String password)
public void setKnownHostsPath(String string)
public void setStrictHostKeyChecking(boolean b)
public void setName(String name)
INamedObject
setName
in interface INamedObject
Copyright © 2023 Frank!Framework. All rights reserved.