Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f615399b118b36d3c3b2de7e80c00a2a71f40a5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
 * Copyright (c) 2000, 2006 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     Atsuhiko Yamanaka, JCraft,Inc. - initial API and implementation.
 *     IBM Corporation - removed preference for enabling SSH2
 *******************************************************************************/
package org.eclipse.team.internal.ccvs.ssh2;

import org.eclipse.team.internal.ccvs.core.*;

/**
 * SSH2 will hijack the 'extssh' method and use the SSH2 protocol instead
 * of SSH1. If the server doesn't support SSH2, the server connection method
 * will try connecting with SSH1.
 * 
 * @since 3.0
 */
public class CVSSSH2Method implements IConnectionMethod {
	
	public String getName() {
		return "extssh"; //$NON-NLS-1$
	}
	
	public IServerConnection createConnection(ICVSRepositoryLocation root, String password) {
		return new CVSSSH2ServerConnection(root, password);
	}
	
	public void disconnect(ICVSRepositoryLocation location) {
	}
}

Back to the top