Package org.craftercms.commons.git.auth
Class SshPasswordAuthConfigurator
java.lang.Object
org.craftercms.commons.git.auth.AbstractSshAuthConfigurator
org.craftercms.commons.git.auth.SshPasswordAuthConfigurator
- All Implemented Interfaces:
GitAuthenticationConfigurator
GitAuthenticationConfigurator that configures the TransportCommand to use SSH with username/password
authentication.
The username is expected to be part of the Git SSH URL, while the password is provided separately and injected to
this class.- Author:
- avasquez
-
Field Summary
FieldsFields inherited from class org.craftercms.commons.git.auth.AbstractSshAuthConfigurator
sshConfig -
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 SshSessionFactory
-
Field Details
-
password
-
-
Constructor Details
-
SshPasswordAuthConfigurator
-
-
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- Overrides:
configureAuthenticationin classAbstractSshAuthConfigurator- Parameters:
command- the command to configure
-
createSessionFactory
- Specified by:
createSessionFactoryin classAbstractSshAuthConfigurator
-