Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-609

SFTP provider doesn't support a private key as byte array

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.4
    • Labels:
      None
    • Environment:

      Java client running on Windows 7

      Description

      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)

        Attachments

        1. SftpClientFactory.java
          13 kB
          stevezhuang
        2. IdentityInfo.java
          4 kB
          stevezhuang

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stevezhuang stevezhuang
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m