[JSch-users] using Identity to pass in ssh-agent info
Status: Alpha
Brought to you by:
ymnk
From: Stephen W. <swi...@cu...> - 2009-02-18 16:59:33
|
Hi, I'm considering adding a way for my product to get identities from ssh-agent (via JNI) so it can pass them to JSch (a wonderful product!). Before I go down that path, I wanted to ask if anyone can tell me if the following approach would work: - Create a class IdentityAgent that implements Indentity and represents one identity retrieved from ssh-agent. - Call addIdentity(IdentityAgent) for each of the identities retrieved from ssh-agent. - Have IdentityAgent return information from ssh-agent for the methods getPublicKeyBlob() and getSignature(). - Have isEncrypted() always return false as no passhprase nor decryption will be needed. Would the above approach work? It would be nice in that I wouldn't need to change JSch, but I may be misunderstanding the intent of the Identity interface. Any advice will be much appreciated. Thanks, --Steve |