Class GitSshdSessionFactory

    • Constructor Detail

      • GitSshdSessionFactory

        public GitSshdSessionFactory()
      • GitSshdSessionFactory

        public GitSshdSessionFactory​(SshClient client)
        Used to provide an externally managed SshClient instance. In this case, the caller is responsible for start/stop-ing the client once no longer needed.
        Parameters:
        client - The (never null) client instance
      • GitSshdSessionFactory

        public GitSshdSessionFactory​(ClientSession session)
        Used to provide an externally managed ClientSession instance. In this case, the caller is responsible for connecting and disconnecting the session once no longer needed. Note: in this case, the connection and authentication phase are skipped - i.e., any specific host/port/user/password(s) specified in the GIT URI are not used.
        Parameters:
        session - The (never null) client session instance
    • Method Detail

      • getType

        public java.lang.String getType()
        Specified by:
        getType in class org.eclipse.jgit.transport.SshSessionFactory
      • getSession

        public org.eclipse.jgit.transport.RemoteSession getSession​(org.eclipse.jgit.transport.URIish uri,
                                                                   org.eclipse.jgit.transport.CredentialsProvider credentialsProvider,
                                                                   org.eclipse.jgit.util.FS fs,
                                                                   int tms)
                                                            throws org.eclipse.jgit.errors.TransportException
        Specified by:
        getSession in class org.eclipse.jgit.transport.SshSessionFactory
        Throws:
        org.eclipse.jgit.errors.TransportException
      • getClient

        protected SshClient getClient()