Hi,
+-From: Johannes Zillmann <[email protected]> --
|_Date: Wed, 11 Aug 2010 09:40:07 +0200 _______________
|
|after sending the mail i found a trick which works for me.
|You can create a new class in your project but in the package
com.jcraft.jsch
>> From this class you can call the package private method
IdentityFile.newInstance("keyFileContent-" + keyFileContent.hashCode(),
keyFileContent.getBytes(), null, jSch);
|That works for my cases so far.
|But it would be nice to have support for this in the official API
How about using the following?
JSch#addIdentity(String name, byte[] prvkey, byte[] pubkey, byte[] passphrase)
If your private key is not ciphered, null should be given as the passphrase.
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: @ymnk
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users