Class SshSessionFactory

java.lang.Object
org.eclipse.jgit.transport.SshSessionFactory
org.eclipse.jgit.transport.sshd.SshdSessionFactory
org.craftercms.commons.git.jgit.SshSessionFactory
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
SshPrivateKeySessionFactory

public class SshSessionFactory extends org.eclipse.jgit.transport.sshd.SshdSessionFactory
Extension of SshdSessionFactory that overrides the default SSH configuration
Since:
4.0.0
Author:
joseross
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected File
    The folder for the SSH configuration
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.jgit.transport.sshd.agent.ConnectorFactory
     
    protected String
     
     
     

    Methods inherited from class org.eclipse.jgit.transport.sshd.SshdSessionFactory

    close, createKeyPasswordProvider, createServerKeyDatabase, createSshConfigStore, getDefaultIdentities, getDefaultKeys, getDefaultKnownHostsFiles, getKeyCache, getServerKeyDatabase, getSession, getSshConfig, getType, setHomeDirectory, setSshDirectory

    Methods inherited from class org.eclipse.jgit.transport.SshSessionFactory

    getInstance, getLocalUserName, releaseSession, setInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • sshConfig

      protected File sshConfig
      The folder for the SSH configuration
  • Constructor Details

    • SshSessionFactory

      public SshSessionFactory(File sshConfig)
  • Method Details

    • getHomeDirectory

      public File getHomeDirectory()
      Overrides:
      getHomeDirectory in class org.eclipse.jgit.transport.sshd.SshdSessionFactory
    • getSshDirectory

      public File getSshDirectory()
      Overrides:
      getSshDirectory in class org.eclipse.jgit.transport.sshd.SshdSessionFactory
    • getDefaultPreferredAuthentications

      protected String getDefaultPreferredAuthentications()
      Overrides:
      getDefaultPreferredAuthentications in class org.eclipse.jgit.transport.sshd.SshdSessionFactory
    • getConnectorFactory

      protected org.eclipse.jgit.transport.sshd.agent.ConnectorFactory getConnectorFactory()
      Overrides:
      getConnectorFactory in class org.eclipse.jgit.transport.sshd.SshdSessionFactory