2 * Copyright (C) 2021, Thomas Wolf <thomas.wolf@paranor.ch> and others
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Distribution License v. 1.0 which is available at
6 * https://www.eclipse.org/org/documents/edl-v10.php.
8 * SPDX-License-Identifier: BSD-3-Clause
10 package org.eclipse.jgit.internal.transport.sshd.agent.connector;
13 import java.io.IOException;
15 import org.eclipse.jgit.transport.sshd.agent.Connector;
16 import org.eclipse.jgit.transport.sshd.agent.ConnectorFactory;
17 import org.eclipse.jgit.util.SystemReader;
20 * An {@link ConnectorFactory} for connecting to an OpenSSH SSH agent.
22 public class Factory implements ConnectorFactory {
24 private static final String NAME = "jgit-builtin"; //$NON-NLS-1$
27 public Connector create(String identityAgent, File homeDir)
29 if (SystemReader.getInstance().isWindows()) {
30 return new PageantConnector();
32 return new UnixDomainSocketConnector(identityAgent);
36 public boolean isSupported() {
41 public String getName() {