You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "stevezhuang (JIRA)" <ji...@apache.org> on 2016/05/09 18:20:12 UTC

[jira] [Comment Edited] (VFS-609) VFS SFTP doesn't support a private key as byte array

    [ https://issues.apache.org/jira/browse/VFS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15276745#comment-15276745 ] 

stevezhuang edited comment on VFS-609 at 5/9/16 6:19 PM:
---------------------------------------------------------

I've provided a patch to support so, please double check and consider adding into your source codes. Thanks!


was (Author: stevezhuang):
I've provided a patch to support so, please double view and consider adding into your source codes. Thanks!

> VFS SFTP doesn't support a private key as byte array
> ----------------------------------------------------
>
>                 Key: VFS-609
>                 URL: https://issues.apache.org/jira/browse/VFS-609
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 2.1
>         Environment: Java client running on Windows 7
>            Reporter: stevezhuang
>            Priority: Minor
>         Attachments: IdentityInfo.java, SftpClientFactory.java
>
>
> Sometimes we would store the private key as a string\bytes in the remote server site, and then access the SFTP functions,
> The JSCH API already provides a possibility to add the private key as bytes, while VFS doesn't support so,
> JSch.java
> public void addIdentity(String name, byte[] prvkey, byte[] pubkey, byte[] passphrase)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)