Interface SshEndpointBuilderFactory.SshEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,SshEndpointBuilderFactory.SshEndpointConsumerBuilder,SshEndpointBuilderFactory.SshEndpointProducerBuilder
- Enclosing interface:
SshEndpointBuilderFactory
public static interface SshEndpointBuilderFactory.SshEndpointBuilder
extends SshEndpointBuilderFactory.SshEndpointConsumerBuilder, SshEndpointBuilderFactory.SshEndpointProducerBuilder
Builder for endpoint for the SSH component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()certResource(String certResource) Sets the resource path of the certificate to use for Authentication.certResourcePassword(String certResourcePassword) Sets the password to use in loading certResource, if certResource is an encrypted key.Comma-separated list of allowed/supported ciphers in their order of preference.failOnUnknownHost(boolean failOnUnknownHost) Specifies whether a connection to an unknown host should fail or not.failOnUnknownHost(String failOnUnknownHost) Specifies whether a connection to an unknown host should fail or not.Comma-separated list of allowed/supported key exchange algorithms in their order of preference.keyPairProvider(String keyPairProvider) Sets the KeyPairProvider reference to use when connecting using Certificates to the remote SSH Server.keyPairProvider(org.apache.sshd.common.keyprovider.KeyPairProvider keyPairProvider) Sets the KeyPairProvider reference to use when connecting using Certificates to the remote SSH Server.Sets the key type to pass to the KeyPairProvider as part of authentication.knownHostsResource(String knownHostsResource) Sets the resource path for a known_hosts file.Comma-separated list of allowed/supported message authentication code algorithms in their order of preference.Sets the password to use in connecting to remote SSH server.signatures(String signatures) Comma-separated list of allowed/supported signature algorithms in their order of preference.timeout(long timeout) Sets the timeout in milliseconds to wait in establishing the remote SSH server connection.Sets the timeout in milliseconds to wait in establishing the remote SSH server connection.Sets the username to use in logging into the remote SSH server.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.endpoint.dsl.SshEndpointBuilderFactory.SshEndpointConsumerBuilder
backoffErrorThreshold, backoffErrorThreshold, backoffIdleThreshold, backoffIdleThreshold, backoffMultiplier, backoffMultiplier, delay, delay, greedy, greedy, initialDelay, initialDelay, pollCommand, repeatCount, repeatCount, runLoggingLevel, runLoggingLevel, scheduledExecutorService, scheduledExecutorService, scheduler, scheduler, schedulerProperties, schedulerProperties, sendEmptyMessageWhenIdle, sendEmptyMessageWhenIdle, startScheduler, startScheduler, timeUnit, timeUnit, useFixedDelay, useFixedDelay
-
Method Details
-
advanced
- Specified by:
advancedin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
advancedin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder
-
failOnUnknownHost
Specifies whether a connection to an unknown host should fail or not. This value is only checked when the property knownHosts is set. The option is a: <code>boolean</code> type. Default: false Group: common- Specified by:
failOnUnknownHostin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
failOnUnknownHostin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
failOnUnknownHost- the value to set- Returns:
- the dsl builder
-
failOnUnknownHost
Specifies whether a connection to an unknown host should fail or not. This value is only checked when the property knownHosts is set. The option will be converted to a <code>boolean</code> type. Default: false Group: common- Specified by:
failOnUnknownHostin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
failOnUnknownHostin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
failOnUnknownHost- the value to set- Returns:
- the dsl builder
-
knownHostsResource
Sets the resource path for a known_hosts file. The option is a: <code>java.lang.String</code> type. Group: common- Specified by:
knownHostsResourcein interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
knownHostsResourcein interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
knownHostsResource- the value to set- Returns:
- the dsl builder
-
timeout
Sets the timeout in milliseconds to wait in establishing the remote SSH server connection. Defaults to 30000 milliseconds. The option is a: <code>long</code> type. Default: 30000 Group: common- Specified by:
timeoutin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
timeoutin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
timeout- the value to set- Returns:
- the dsl builder
-
timeout
Sets the timeout in milliseconds to wait in establishing the remote SSH server connection. Defaults to 30000 milliseconds. The option will be converted to a <code>long</code> type. Default: 30000 Group: common- Specified by:
timeoutin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
timeoutin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
timeout- the value to set- Returns:
- the dsl builder
-
certResource
Sets the resource path of the certificate to use for Authentication. Will use ResourceHelperKeyPairProvider to resolve file based certificate, and depends on keyType setting. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
certResourcein interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
certResourcein interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
certResource- the value to set- Returns:
- the dsl builder
-
certResourcePassword
default SshEndpointBuilderFactory.SshEndpointBuilder certResourcePassword(String certResourcePassword) Sets the password to use in loading certResource, if certResource is an encrypted key. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
certResourcePasswordin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
certResourcePasswordin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
certResourcePassword- the value to set- Returns:
- the dsl builder
-
ciphers
Comma-separated list of allowed/supported ciphers in their order of preference. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
ciphersin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
ciphersin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
ciphers- the value to set- Returns:
- the dsl builder
-
kex
Comma-separated list of allowed/supported key exchange algorithms in their order of preference. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
kexin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
kexin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
kex- the value to set- Returns:
- the dsl builder
-
keyPairProvider
default SshEndpointBuilderFactory.SshEndpointBuilder keyPairProvider(org.apache.sshd.common.keyprovider.KeyPairProvider keyPairProvider) Sets the KeyPairProvider reference to use when connecting using Certificates to the remote SSH Server. The option is a: <code>org.apache.sshd.common.keyprovider.KeyPairProvider</code> type. Group: security- Specified by:
keyPairProviderin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
keyPairProviderin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
keyPairProvider- the value to set- Returns:
- the dsl builder
-
keyPairProvider
Sets the KeyPairProvider reference to use when connecting using Certificates to the remote SSH Server. The option will be converted to a <code>org.apache.sshd.common.keyprovider.KeyPairProvider</code> type. Group: security- Specified by:
keyPairProviderin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
keyPairProviderin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
keyPairProvider- the value to set- Returns:
- the dsl builder
-
keyType
Sets the key type to pass to the KeyPairProvider as part of authentication. KeyPairProvider.loadKey(...) will be passed this value. From Camel 3.0.0 / 2.25.0, by default Camel will select the first available KeyPair that is loaded. Prior to this, a KeyType of 'ssh-rsa' was enforced by default. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
keyTypein interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
keyTypein interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
keyType- the value to set- Returns:
- the dsl builder
-
macs
Comma-separated list of allowed/supported message authentication code algorithms in their order of preference. The MAC algorithm is used for data integrity protection. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
macsin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
macsin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
macs- the value to set- Returns:
- the dsl builder
-
password
Sets the password to use in connecting to remote SSH server. Requires keyPairProvider to be set to null. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
passwordin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
passwordin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
password- the value to set- Returns:
- the dsl builder
-
signatures
Comma-separated list of allowed/supported signature algorithms in their order of preference. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
signaturesin interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
signaturesin interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
signatures- the value to set- Returns:
- the dsl builder
-
username
Sets the username to use in logging into the remote SSH server. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
usernamein interfaceSshEndpointBuilderFactory.SshEndpointConsumerBuilder- Specified by:
usernamein interfaceSshEndpointBuilderFactory.SshEndpointProducerBuilder- Parameters:
username- the value to set- Returns:
- the dsl builder
-