public abstract class AbstractSshAuthConfigurator extends Object implements GitAuthenticationConfigurator
GitAuthenticationConfigurator that configures the TransportCommand to use SSH, but without providing
any authentication functionality. Actual authentication functionality is provided by subclasses.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_TYPE_CONFIG |
| Constructor and Description |
|---|
AbstractSshAuthConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureAuthentication(org.eclipse.jgit.api.TransportCommand command)
Configures the authentication of the given
TransportCommand based on a specific authentication strategy,
like HTTP basic authentication, SSH username/password authentication and SSH RSA key pair authentication. |
protected abstract org.eclipse.jgit.transport.SshSessionFactory |
createSessionFactory() |
protected void |
setHostKeyType(org.eclipse.jgit.transport.OpenSshConfig.Host host,
com.jcraft.jsch.Session session) |
public static final String KEY_TYPE_CONFIG
public void configureAuthentication(org.eclipse.jgit.api.TransportCommand command)
GitAuthenticationConfiguratorTransportCommand based on a specific authentication strategy,
like HTTP basic authentication, SSH username/password authentication and SSH RSA key pair authentication.configureAuthentication in interface GitAuthenticationConfiguratorcommand - the command to configureprotected void setHostKeyType(org.eclipse.jgit.transport.OpenSshConfig.Host host,
com.jcraft.jsch.Session session)
protected abstract org.eclipse.jgit.transport.SshSessionFactory createSessionFactory()
Copyright © 2018 CrafterCMS. All rights reserved.