Package org.craftercms.commons.git.auth
Class BasicUsernamePasswordAuthConfigurator
java.lang.Object
org.craftercms.commons.git.auth.BasicUsernamePasswordAuthConfigurator
- All Implemented Interfaces:
GitAuthenticationConfigurator
public class BasicUsernamePasswordAuthConfigurator
extends Object
implements GitAuthenticationConfigurator
GitAuthenticationConfigurator that uses basic username/password authentication.- Author:
- avasquez
-
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.
-
Constructor Details
-
BasicUsernamePasswordAuthConfigurator
-
-
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
-