Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SSH_PORT |
Constructor and Description |
---|
SshConfiguration() |
SshConfiguration(URI uri) |
Modifier and Type | Method and Description |
---|---|
void |
configure(URI uri) |
SshConfiguration |
copy() |
String |
getCertFilename()
Deprecated.
As of version 2.11, replaced by
getCertResource() |
String |
getCertResource() |
String |
getHost() |
org.apache.sshd.common.keyprovider.KeyPairProvider |
getKeyPairProvider() |
String |
getKeyType() |
String |
getKnownHostsResource() |
String |
getPassword() |
String |
getPollCommand() |
int |
getPort() |
long |
getTimeout() |
String |
getUsername() |
boolean |
isFailOnUnknownHost() |
void |
setCertFilename(String certFilename)
Deprecated.
As of version 2.11, replaced by
setCertResource(String) |
void |
setCertResource(String certResource)
Sets the resource path of the certificate to use for Authentication.
|
void |
setFailOnUnknownHost(boolean failOnUnknownHost)
Specifies whether a connection to an unknown host should fail or not.
|
void |
setHost(String host)
Sets the hostname of the remote SSH server.
|
void |
setKeyPairProvider(org.apache.sshd.common.keyprovider.KeyPairProvider keyPairProvider)
Sets the KeyPairProvider reference to use when connecting using Certificates
to the remote SSH Server.
|
void |
setKeyType(String keyType)
Sets the key type to pass to the KeyPairProvider as part of authentication.
|
void |
setKnownHostsResource(String knownHostsResource)
Sets the resource path for a known_hosts file
|
void |
setPassword(String password)
Sets the password to use in connecting to remote SSH server.
|
void |
setPollCommand(String pollCommand)
Sets the command string to send to the remote SSH server during every poll
cycle.
|
void |
setPort(int port)
Sets the port number for the remote SSH server.
|
void |
setTimeout(long timeout)
Sets the timeout in milliseconds to wait in establishing the remote SSH
server connection.
|
void |
setUsername(String username)
Sets the username to use in logging into the remote SSH server.
|
public static final int DEFAULT_SSH_PORT
public SshConfiguration()
public SshConfiguration(URI uri)
public void configure(URI uri)
public SshConfiguration copy()
public String getUsername()
public void setUsername(String username)
username
- String representing login username.public String getHost()
public void setHost(String host)
host
- String representing hostname of SSH server.public int getPort()
public void setPort(int port)
port
- int representing port number on remote host. Defaults to 22.public String getPassword()
public void setPassword(String password)
password
- String representing password for username at remote host.public String getPollCommand()
public void setPollCommand(String pollCommand)
pollCommand
- String representing the command to send.public org.apache.sshd.common.keyprovider.KeyPairProvider getKeyPairProvider()
public void setKeyPairProvider(org.apache.sshd.common.keyprovider.KeyPairProvider keyPairProvider)
keyPairProvider
- KeyPairProvider reference to use in authenticating. If set to
'null', then will attempt to connect using username/password
settings.KeyPairProvider
public String getKeyType()
public void setKeyType(String keyType)
keyType
- String defining the type of KeyPair to use for authentication.KeyPairProvider
public long getTimeout()
public void setTimeout(long timeout)
timeout
- long milliseconds to wait.@Deprecated public String getCertFilename()
getCertResource()
@Deprecated public void setCertFilename(String certFilename)
setCertResource(String)
public String getCertResource()
public void setCertResource(String certResource)
ResourceHelperKeyPairProvider
to resolve file based certificate, and
depends on keyType setting.certResource
- String file, classpath, or http url for the certificatepublic String getKnownHostsResource()
public void setKnownHostsResource(String knownHostsResource)
knownHosts
- String file, classpath, or http url for the certificatepublic boolean isFailOnUnknownHost()
public void setFailOnUnknownHost(boolean failOnUnknownHost)
boolean
- boolean flag, whether a connection to an unknown host should failApache Camel