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 TypeMethodDescriptionvoid
configureAuthentication
(org.eclipse.jgit.api.TransportCommand<?, ?> command) Configures the authentication of the givenTransportCommand
based 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:GitAuthenticationConfigurator
Configures the authentication of the givenTransportCommand
based on a specific authentication strategy, like HTTP basic authentication, SSH username/password authentication and SSH RSA key pair authentication.- Specified by:
configureAuthentication
in interfaceGitAuthenticationConfigurator
- Overrides:
configureAuthentication
in classAbstractSshAuthConfigurator
- Parameters:
command
- the command to configure
-
createSessionFactory
- Specified by:
createSessionFactory
in classAbstractSshAuthConfigurator
-