public static class SSHCredential.Builder extends Object
Modifier and Type | Method and Description |
---|---|
SSHCredential |
build()
Build a new instance of SSHCredential.
|
SSHCredential.Builder |
setKnownHostsFile(String knownHostsFile)
The name of the file containing the known hosts file
|
SSHCredential.Builder |
setPassphrase(Credential passphrase)
The passphrase needed to decrypt the private key
|
SSHCredential.Builder |
setPrivateKeyIdentities(String[] privateKeyIdentities)
An array of the names of files containing private keys
|
SSHCredential.Builder |
setPrivateKeyIdentity(String privateKeyIdentity)
The name of the file containing the private key
|
SSHCredential.Builder |
setSSHDirectory(File sshDirectory)
The path to the ssh directory containing the private key file and known hosts file
|
SSHCredential.Builder |
setSSHDirectory(String sshDirectory)
The path to the ssh directory containing the private key file and known hosts file
|
public SSHCredential.Builder setSSHDirectory(String sshDirectory)
sshDirectory
- the ssh directorypublic SSHCredential.Builder setSSHDirectory(File sshDirectory)
sshDirectory
- the ssh directorypublic SSHCredential.Builder setPrivateKeyIdentity(String privateKeyIdentity)
privateKeyIdentity
- the name of the private key filepublic SSHCredential.Builder setPrivateKeyIdentities(String[] privateKeyIdentities)
privateKeyIdentities
- the names of the private key filespublic SSHCredential.Builder setPassphrase(Credential passphrase)
passphrase
- the passphrase used to decrypt the private keypublic SSHCredential.Builder setKnownHostsFile(String knownHostsFile)
knownHostsFile
- the name of the file containing the known SSH hostspublic SSHCredential build()
Copyright © 2021 JBoss by Red Hat. All rights reserved.