Package com.sshtools.client
Class SshCompatibilityUtils
java.lang.Object
com.sshtools.client.SshCompatibilityUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SshPublicKeygetHostKey(String hostname, int port) static SshPublicKeygetHostKey(String hostname, int port, String algorithm) static SshClientgetRemoteClient(String hostname, int port, String username, String password, boolean tcpNoDelay) static SshConnectiongetRemoteConfiguration(String hostname, int port) static String[]getSupportedHostKeyAlgorithms(String hostname, int port) static Set<SshPublicKey>getSupportedHostKeys(String hostname, int port)
-
Constructor Details
-
SshCompatibilityUtils
public SshCompatibilityUtils()
-
-
Method Details
-
getSupportedHostKeyAlgorithms
public static String[] getSupportedHostKeyAlgorithms(String hostname, int port) throws SshException, IOException - Throws:
SshExceptionIOException
-
getHostKey
- Throws:
SshExceptionIOException
-
getSupportedHostKeys
public static Set<SshPublicKey> getSupportedHostKeys(String hostname, int port) throws SshException, IOException - Throws:
SshExceptionIOException
-
getHostKey
public static SshPublicKey getHostKey(String hostname, int port, String algorithm) throws SshException, IOException - Throws:
SshExceptionIOException
-
getRemoteConfiguration
public static SshConnection getRemoteConfiguration(String hostname, int port) throws IOException, SshException - Throws:
IOExceptionSshException
-
getRemoteClient
public static SshClient getRemoteClient(String hostname, int port, String username, String password, boolean tcpNoDelay) throws SshException, IOException - Throws:
SshExceptionIOException
-