Class SshPrivateKeyAuthConfigurator

java.lang.Object
org.craftercms.commons.git.auth.AbstractSshAuthConfigurator
org.craftercms.commons.git.auth.SshPrivateKeyAuthConfigurator
All Implemented Interfaces:
GitAuthenticationConfigurator

public class SshPrivateKeyAuthConfigurator extends AbstractSshAuthConfigurator
GitAuthenticationConfigurator that configures the TransportCommand to use SSH with private key authentication. The file path of the private key and it's passphrase can be provided, but are not necessary, specially when the private key has already been loaded into the SSH agent.
Author:
avasquez
  • Field Details

    • privateKeyPath

      protected final String privateKeyPath
    • passphrase

      protected final String passphrase
  • Constructor Details

    • SshPrivateKeyAuthConfigurator

      public SshPrivateKeyAuthConfigurator(File sshConfig, String privateKeyPath, String passphrase)
  • Method Details