This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f5b54b9f32545c5a6a98bb31a23563928ba9c796
Author: Colm O hEigeartaigh <cohei...@apache.org>
AuthorDate: Thu Jun 27 16:35:59 2019 +0100

    CAMEL-13692 - Updating docs
---
 components/camel-ssh/src/main/docs/ssh-component.adoc                | 2 +-
 .../main/java/org/apache/camel/component/ssh/SshConfiguration.java   | 5 +++--
 .../camel/component/ssh/springboot/SshComponentConfiguration.java    | 4 +++-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/components/camel-ssh/src/main/docs/ssh-component.adoc 
b/components/camel-ssh/src/main/docs/ssh-component.adoc
index 42c4718..8ff789d 100644
--- a/components/camel-ssh/src/main/docs/ssh-component.adoc
+++ b/components/camel-ssh/src/main/docs/ssh-component.adoc
@@ -113,7 +113,7 @@ with the following path and query parameters:
 | *useFixedDelay* (scheduler) | Controls if fixed delay or fixed rate is used. 
See ScheduledExecutorService in JDK for details. | true | boolean
 | *certResource* (security) | Sets the resource path of the certificate to use 
for Authentication. Will use ResourceHelperKeyPairProvider to resolve file 
based certificate, and depends on keyType setting. |  | String
 | *keyPairProvider* (security) | Sets the KeyPairProvider reference to use 
when connecting using Certificates to the remote SSH Server. |  | 
KeyPairProvider
-| *keyType* (security) | Sets the key type to pass to the KeyPairProvider as 
part of authentication. KeyPairProvider.loadKey(...) will be passed this value. 
Defaults to ssh-rsa. |  | String
+| *keyType* (security) | 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. |  | String
 | *password* (security) | Sets the password to use in connecting to remote SSH 
server. Requires keyPairProvider to be set to null. |  | String
 | *username* (security) | Sets the username to use in logging into the remote 
SSH server. |  | String
 |===
diff --git 
a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshConfiguration.java
 
b/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshConfiguration.java
index dcaf2c0..fa7a28f 100644
--- 
a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshConfiguration.java
+++ 
b/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshConfiguration.java
@@ -202,8 +202,9 @@ public class SshConfiguration implements Cloneable {
 
     /**
      * Sets the key type to pass to the KeyPairProvider as part of 
authentication.
-     * KeyPairProvider.loadKey(...) will be passed this value. Defaults to
-     * "ssh-rsa".
+     * 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.
      *
      * @param keyType
      *            String defining the type of KeyPair to use for 
authentication.
diff --git 
a/platforms/spring-boot/components-starter/camel-ssh-starter/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java
 
b/platforms/spring-boot/components-starter/camel-ssh-starter/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java
index 715acfc..ddfeeb8 100644
--- 
a/platforms/spring-boot/components-starter/camel-ssh-starter/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java
+++ 
b/platforms/spring-boot/components-starter/camel-ssh-starter/src/main/java/org/apache/camel/component/ssh/springboot/SshComponentConfiguration.java
@@ -276,7 +276,9 @@ public class SshComponentConfiguration
         /**
          * Sets the key type to pass to the KeyPairProvider as part of
          * authentication. KeyPairProvider.loadKey(...) will be passed this
-         * value. Defaults to ssh-rsa.
+         * 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.
          */
         private String keyType;
         /**

Reply via email to