Package org.eclipse.jgit.transport

Examples of org.eclipse.jgit.transport.SshSessionFactory


* A helper class for using a {@link org.eclipse.jgit.transport.SshSessionFactory}
* which is OpenShift friendly
*/
public class SshSessionFactoryUtils {
    public static <T> T useOpenShiftSessionFactory(Callable<T> callable) throws Exception {
        SshSessionFactory oldFactory = SshSessionFactory.getInstance();
        try {
            SshSessionFactory.setInstance(new JschConfigSessionFactory() {
                @Override
                protected void configure(OpenSshConfig.Host hc, Session session) {
                    session.setConfig("StrictHostKeyChecking", "no");
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.transport.SshSessionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.