BowlerKernel
SshTransportConfigCallback.java
Go to the documentation of this file.
1 package com.neuronrobotics.bowlerstudio.scripting;
2 
3 import org.eclipse.jgit.api.TransportConfigCallback;
4 import org.eclipse.jgit.transport.SshTransport;
5 import org.eclipse.jgit.transport.Transport;
6 
7 public class SshTransportConfigCallback implements TransportConfigCallback {
8  org.eclipse.jgit.transport.sshd.SshdSessionFactory sshSessionFactory = new org.eclipse.jgit.transport.sshd.SshdSessionFactory();
9 
10  @Override
11  public void configure(Transport transport) {
12  SshTransport sshTransport = (SshTransport) transport;
13  sshTransport.setSshSessionFactory(sshSessionFactory);
14  }
15 }