]> source.dussan.org Git - jgit.git/commit
Support CredentialsProvider for SSH connections 80/1880/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Nov 2010 22:18:46 +0000 (14:18 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 10 Nov 2010 23:00:13 +0000 (15:00 -0800)
commitd279bc83b0670b34f7c9237f803b6cc6e02fbc3e
tree85dab509f10d53efec7e2b257cd3049efd7178f4
parentce99b48384bd7a7ee42942653b5659787d3f1d48
Support CredentialsProvider for SSH connections

When setting up an SSH connection, use the caller supplied
CredentialsProvider, if one has been given to the Transport
or was defined as the default.

The CredentialsProvider is re-wrapped as a JSch UserInfo,
allowing the connection to use this for user interactive
prompts.  This give a unified API for authentication on
any transport type.

Change-Id: Id3b4cf5bfd27a23207cdfb188bae3b78e71e02c0
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/CredentialItem.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/CredentialsProvider.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/CredentialsProviderUserInfo.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/SshConfigSessionFactory.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/SshSessionFactory.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/SshTransport.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UsernamePasswordCredentialsProvider.java