Package org.craftercms.commons.git.auth
Class AbstractSshAuthConfigurator
java.lang.Object
org.craftercms.commons.git.auth.AbstractSshAuthConfigurator
- All Implemented Interfaces:
GitAuthenticationConfigurator
- Direct Known Subclasses:
SshPasswordAuthConfigurator,SshPrivateKeyAuthConfigurator
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.- Author:
- avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureAuthentication(org.eclipse.jgit.api.TransportCommand<?, ?> command) Configures the authentication of the givenTransportCommandbased 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
-
Field Details
-
sshConfig
-
-
Constructor Details
-
AbstractSshAuthConfigurator
-
-
Method Details
-
configureAuthentication
public void configureAuthentication(org.eclipse.jgit.api.TransportCommand<?, ?> command) Description copied from interface:GitAuthenticationConfiguratorConfigures the authentication of the givenTransportCommandbased on a specific authentication strategy, like HTTP basic authentication, SSH username/password authentication and SSH RSA key pair authentication.- Specified by:
configureAuthenticationin interfaceGitAuthenticationConfigurator- Parameters:
command- the command to configure
-
createSessionFactory
protected abstract org.eclipse.jgit.transport.SshSessionFactory createSessionFactory()
-