Package org.craftercms.commons.git.jgit
Class SshPrivateKeySessionFactory
java.lang.Object
org.eclipse.jgit.transport.SshSessionFactory
org.eclipse.jgit.transport.sshd.SshdSessionFactory
org.craftercms.commons.git.jgit.SshSessionFactory
org.craftercms.commons.git.jgit.SshPrivateKeySessionFactory
- All Implemented Interfaces:
Closeable,AutoCloseable
Extension of
SshSessionFactory to use a given private key for SSH authentication- Since:
- 4.0.0
- Author:
- joseross
-
Field Summary
FieldsFields inherited from class org.craftercms.commons.git.jgit.SshSessionFactory
sshConfig -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.craftercms.commons.git.jgit.SshSessionFactory
getConnectorFactory, getHomeDirectory, getSshDirectoryMethods inherited from class org.eclipse.jgit.transport.sshd.SshdSessionFactory
close, createKeyPasswordProvider, createServerKeyDatabase, createSshConfigStore, getDefaultKeys, getDefaultKnownHostsFiles, getKeyCache, getServerKeyDatabase, getSession, getSshConfig, getType, setHomeDirectory, setSshDirectoryMethods inherited from class org.eclipse.jgit.transport.SshSessionFactory
getInstance, getLocalUserName, releaseSession, setInstance
-
Field Details
-
privateKey
-
-
Constructor Details
-
SshPrivateKeySessionFactory
-
-
Method Details
-
getDefaultPreferredAuthentications
- Overrides:
getDefaultPreferredAuthenticationsin classSshSessionFactory
-
getDefaultIdentities
- Overrides:
getDefaultIdentitiesin classorg.eclipse.jgit.transport.sshd.SshdSessionFactory
-