title: Apache Camel set privateKey SFTP
body: <p>I am trying to connect to a sftp server in order to store some files. I want to connect via the SSH. 
  My question is almost identical with: 
  <a href="https://stackoverflow.com/questions/57495686/camel-sftp-component-ssh-private-key-uri-works-with-privatekeyfile-doesnt-wo">Camel SFTP component - SSH private key URI works with privateKeyFile, doesn&#39;t work with privateKey</a>
  and the following answer: <a href="https://stackoverflow.com/questions/57396184/apache-camel-how-to-set-a-private-key-in-a-dinamic-sftp-endpoint">Apache Camel - How to set a private key in a dinamic sftp endpoint</a> 
  But I still I didn't manage to connect.</p>
  
  <p>My working route: </p>
  
  <pre><code> from(mytopic)
    .to(sftp://username@my.host:22/folder/?privateKeyFile=path/to/privateRsa)
  </code></pre>
  
  <p>My NON working route:</p>
  
  <pre><code>  from(mytopic)
    .to(sftp://username@my.host:22/folder/?privateKey=byteArrayRsa)
  </code></pre>
  
  <p>I debugged the com.jcraft.jsch.KeyPair class -> following method: </p>
  
  <pre><code>public static KeyPair load(JSch jsch, byte[] prvkey, byte[] pubkey) throws JSchException 
  </code></pre>
  
  <p>And seems that instead of having the correct byte[] prvkey, I got its address. 
  How can I send the correct byte array? I tried to create a bean as it is suggested in one of the links, but it didn't worked. (I am using camel 3.1)</p>