public class SshRsaKeyPairAuthConfigurator extends AbstractSshAuthConfigurator
GitAuthenticationConfigurator that configures the TransportCommand to use SSH with RSA key pair 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.| Modifier and Type | Field and Description |
|---|---|
protected String |
passphrase |
protected String |
privateKeyPath |
KEY_TYPE_CONFIG| Constructor and Description |
|---|
SshRsaKeyPairAuthConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jgit.transport.SshSessionFactory |
createSessionFactory() |
void |
setPassphrase(String passphrase) |
void |
setPrivateKeyPath(String privateKeyPath) |
configureAuthentication, setHostKeyTypepublic void setPrivateKeyPath(String privateKeyPath)
public void setPassphrase(String passphrase)
protected org.eclipse.jgit.transport.SshSessionFactory createSessionFactory()
createSessionFactory in class AbstractSshAuthConfiguratorCopyright © 2018 CrafterCMS. All rights reserved.