Uses of Class
com.sshtools.client.SshClient.SshClientBuilder
Packages that use SshClient.SshClientBuilder
-
Uses of SshClient.SshClientBuilder in com.sshtools.client
Methods in com.sshtools.client that return SshClient.SshClientBuilderModifier and TypeMethodDescriptionSshClient.SshClientBuilder.addAuthenticators
(ClientAuthenticator... authenticators) Add one or moreClientAuthenticator
instances that will be presented to the server one at a time.SshClient.SshClientBuilder.addAuthenticators
(Collection<ClientAuthenticator> authenticators) Add one or moreClientAuthenticator
instances that will be presented to the server one at a time.SshClient.SshClientBuilder.addIdentities
(com.sshtools.common.ssh.components.SshKeyPair... identities) Add on more identities (key pairs) to use for authentication.SshClient.SshClientBuilder.addIdentities
(Collection<com.sshtools.common.ssh.components.SshKeyPair> identities) Add a key pair to use for authentication.static SshClient.SshClientBuilder
SshClient.SshClientBuilder.create()
Create a newSshClient.SshClientBuilder
SshClient.SshClientBuilder.onConfigure
(SshClient.OnConfiguration onConfigure) Set aConsumer
that receives aSshClientContext
when the connection is ready for configuration.SshClient.SshClientBuilder.withAuthenticators
(ClientAuthenticator... authenticators) Set the list of one or moreClientAuthenticator
instances that will be presented to the server one at a time.SshClient.SshClientBuilder.withAuthenticators
(Collection<ClientAuthenticator> authenticators) Set the list of one or moreClientAuthenticator
instances that will be presented to the server one at a time.SshClient.SshClientBuilder.withConnectTimeout
(long connectTimeout) Set the connection timeout in milliseconds.SshClient.SshClientBuilder.withConnectTimeout
(Duration connectTimeout) Set the connection timeout.SshClient.SshClientBuilder.withCurrentUsername
(String username) Set the username to use for authentication as currently local in local user, what is returned bySystem.getProperty("user.name");
.SshClient.SshClientBuilder.withHost
(InetAddress address) Set the host to use.SshClient.SshClientBuilder.withHostname
(String hostname) Set the hostname to use.SshClient.SshClientBuilder.withIdentities
(com.sshtools.common.ssh.components.SshKeyPair... identities) Set one more identities (key pairs) to use for authentication.SshClient.SshClientBuilder.withIdentities
(Collection<com.sshtools.common.ssh.components.SshKeyPair> identities) Add a key pair to use for authentication.SshClient.SshClientBuilder.withPassword
(char[] password) Set the password to use for authentication.SshClient.SshClientBuilder.withPassword
(String password) Set the password to use for authentication.SshClient.SshClientBuilder.withPassword
(Optional<String> password) Set the password to use for authentication.SshClient.SshClientBuilder.withPasswordPrompt
(PasswordAuthenticator.PasswordPrompt prompt) Set the password prompt to use for authentication.SshClient.SshClientBuilder.withPort
(int port) Set the port to use.Set the port to use.SshClient.SshClientBuilder.withPrivateKeyFile
(File file) Set a private key file to use for authentication.SshClient.SshClientBuilder.withPrivateKeyFile
(Path file) Set a private key file to use for authentication.SshClient.SshClientBuilder.withSshContext
(SshClientContext context) Set theSshClientContext
to use.SshClient.SshClientBuilder.withTarget
(String hostname, int port) Set the hostname and port to use from the provided address.SshClient.SshClientBuilder.withTarget
(InetSocketAddress address) Set the host and port to use from the provided address.SshClient.SshClientBuilder.withUsername
(String username) Set the username to use for authentication.SshClient.SshClientBuilder.withUsername
(Optional<String> username) Set the username to use for authentication.