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 Details

    • BasicUsernamePasswordAuthConfigurator

      public BasicUsernamePasswordAuthConfigurator(String username, String password)
  • Method Details

    • configureAuthentication

      public void configureAuthentication(org.eclipse.jgit.api.TransportCommand<?,?> command)
      Description copied from interface: GitAuthenticationConfigurator
      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.
      Specified by:
      configureAuthentication in interface GitAuthenticationConfigurator
      Parameters:
      command - the command to configure