camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Regvart <zo...@regvart.com>
Subject Re: Camel SSH - dynamic values
Date Wed, 12 Apr 2017 20:47:42 GMT
Hi Sumit,
not sure if you'll shoot yourself in the foot, but you could do change
component's configuration from a processor, like:

    from("direct:s").process((exchange) -> exchange.getContext()
        .getComponent("ssh", SshComponent.class)
        .getConfiguration()
        .setPassword("..."))
    .to("ssh:...");

zoran

On Wed, Apr 12, 2017 at 7:34 PM, urwithsumit <sumit.kushwaha@gmail.com> wrote:
> Any advice on how i can make a SSH login with username and a RSA Token ex:
> 87632345?




-- 
Zoran Regvart

Mime
View raw message