Closed MattLud closed 4 years ago
You can probably somewhat easy make a for example StringIdentity
class and add that via JSch.addIdentity(Identity identity, byte[] passphrase) instead of writing the file to disk.
Look at for example how com.jcraft.jsch.IdentityFile.newInstance
is implemented for inspiration.
This is two years old. Is this pull request still needed, or has this use case been solved by some other code change?
Might still be needed, but PRs can be revived.
This work is needed to support passing credentials from Jenkins to the gerrit library.