]> source.dussan.org Git - jgit.git/commit
SshdSessionFactory: generalize providing default keys 80/134680/4
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 5 Jan 2019 16:37:25 +0000 (17:37 +0100)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 22 Jan 2019 11:42:26 +0000 (06:42 -0500)
commit2cb842ef0214a95f77b35b06a3c4992b6c8fbb01
tree1d64b1468891f482c269f58a88932ea08f5b938c
parentc4420d24343b8aa2183577d4cbaa566b59527ad3
SshdSessionFactory: generalize providing default keys

Provide a mechanism for a subclass to provide its own set
of default identities from anywhere as an Iterable<KeyPair>.

The default implementation is functionally unchanged and uses
the known default identity files in the ~/.ssh directory. A subclass
can override the getDefaultKeys() function and return whatever keys
are appropriate.

Bug: 543152
Change-Id: I500d63146bc67e20e051f617790eb87c7cb500b6
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/CachingKeyPairProvider.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/EncryptedFileKeyPairProvider.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitSshClient.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSessionFactory.java