You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/04/27 14:50:00 UTC

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

     [ https://issues.apache.org/jira/browse/VFS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory resolved VFS-609.
------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4

I committed a different implementation of this feature. Please verify that it works for you. If you can provide tests for the new API that would be great.

> SFTP provider 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
>             Fix For: 2.4
>
>         Attachments: IdentityInfo.java, SftpClientFactory.java
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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
(v7.6.3#76005)