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

public class SshPrivateKeySessionFactory extends SshSessionFactory
Extension of SshSessionFactory to use a given private key for SSH authentication
Since:
4.0.0
Author:
joseross
  • Field Details

    • privateKey

      protected Path privateKey
  • Constructor Details

    • SshPrivateKeySessionFactory

      public SshPrivateKeySessionFactory(File sshConfig, Path privateKey)
  • Method Details