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
    Modifier and Type
    Field
    Description
    protected final File
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureAuthentication(org.eclipse.jgit.api.TransportCommand<?,?> command)
    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.
    protected abstract org.eclipse.jgit.transport.SshSessionFactory
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • sshConfig

      protected final File sshConfig
  • Constructor Details

    • AbstractSshAuthConfigurator

      public AbstractSshAuthConfigurator(File sshConfig)
  • 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
    • createSessionFactory

      protected abstract org.eclipse.jgit.transport.SshSessionFactory createSessionFactory()