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 moreClientAuthenticatorinstances that will be presented to the server one at a time.SshClient.SshClientBuilder.addAuthenticators(Collection<ClientAuthenticator> authenticators) Add one or moreClientAuthenticatorinstances that will be presented to the server one at a time.SshClient.SshClientBuilder.addIdentities(SshKeyPair... identities) Add on more identities (key pairs) to use for authentication.SshClient.SshClientBuilder.addIdentities(Collection<SshKeyPair> identities) Add a key pair to use for authentication.static SshClient.SshClientBuilderSshClient.SshClientBuilder.create()Create a newSshClient.SshClientBuilderSshClient.SshClientBuilder.onConfigure(SshClient.OnConfiguration onConfigure) Set aConsumerthat receives aSshClientContextwhen the connection is ready for configuration.SshClient.SshClientBuilder.withAuthenticators(ClientAuthenticator... authenticators) Set the list of one or moreClientAuthenticatorinstances that will be presented to the server one at a time.SshClient.SshClientBuilder.withAuthenticators(Collection<ClientAuthenticator> authenticators) Set the list of one or moreClientAuthenticatorinstances 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(SshKeyPair... identities) Set one more identities (key pairs) to use for authentication.SshClient.SshClientBuilder.withIdentities(Collection<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(File file, PassphrasePrompt prompt) 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.withPrivateKeyFile(Path path, PassphrasePrompt prompt) Set a private key file to use for authentication.SshClient.SshClientBuilder.withPrivateKeyFiles(Collection<File> files) Set multiple private keys from a Path collection.SshClient.SshClientBuilder.withPrivateKeyFiles(Collection<File> files, PassphrasePrompt prompt) Set a private key file to use for authentication.SshClient.SshClientBuilder.withPrivateKeyPaths(Collection<Path> paths) Set multiple private keys from a Path collection.SshClient.SshClientBuilder.withPrivateKeyPaths(Collection<Path> paths, PassphrasePrompt prompt) Set multiple private keys from a Path collection.SshClient.SshClientBuilder.withSshContext(SshClientContext context) Set theSshClientContextto 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.