Uses of Class
org.metricshub.winrm.WinRMClient.Builder
Packages that use WinRMClient.Builder
-
Uses of WinRMClient.Builder in org.metricshub.winrm
Methods in org.metricshub.winrm that return WinRMClient.BuilderModifier and TypeMethodDescriptionWinRMClient.Builder.allowDelegation()Let remote commands use the caller's credentials to reach a further host — a UNC path on a file server, a database, another server — likewinrs -allowdelegate.WinRMClient.Builder.arraySeparator(String arraySeparator) Set the string that joins the elements of a WMI array property in a WQL row, such asIPAddressinWin32_NetworkAdapterConfiguration.WinRMClient.Builder.authentication(AuthScheme... schemes) Set the authentication schemes, tried in the given order until one succeeds.static WinRMClient.BuilderStart building a client for the given host.WinRMClient.Builder.consoleCodePage(int consoleCodePage) Set the console code page of the remote command shell.WinRMClient.Builder.credentials(String username, char[] password) Set the credentials (mandatory).WinRMClient.Builder.http()Connect over HTTP (port 5985 unlessport(int)is set) — the default.WinRMClient.Builder.https()Connect over HTTPS (port 5986 unlessport(int)is set).WinRMClient.Builder.loadUserProfile()Load the user profile in the remote command shell — the opposite ofwinrs -noprofile.WinRMClient.Builder.maxCommandsPerShell(int maxCommandsPerShell) Set how many commands the remote command shell runs before the client replaces it.Set the default WMI namespace for WQL queries.WinRMClient.Builder.port(int port) Set the port.Retry transient connection failures.WinRMClient.Builder.sslContext(SSLContext sslContext) Use a customSSLContextfor HTTPS — e.g. one built around a dedicated trust store.WinRMClient.Builder.ticketCache(Path ticketCache) Set the Kerberos ticket cache path.Set the default timeout of every operation — a wall-clock deadline covering authentication, every WSMan round trip, and result collection.WinRMClient.Builder.trustAllCertificates()Trust every server certificate and skip hostname verification over HTTPS — for self-signed test hosts.