Package de.bytestore.hostinger.handler
Class SSHHandler
java.lang.Object
de.bytestore.hostinger.handler.SSHHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCloses the SSHSocket and removes it from the sockets HashMap if it exists.static SSHSocketCreates a new SSHSocket object and initializes the SSH connection.
-
Constructor Details
-
SSHHandler
public SSHHandler()
-
-
Method Details
-
createSSH
public static SSHSocket createSSH(String hostnameIO, String usernameIO, String passwordIO, int portIO) Creates a new SSHSocket object and initializes the SSH connection.- Parameters:
hostnameIO- the hostname of the SSH serverusernameIO- the username for authenticationpasswordIO- the password for authenticationportIO- the port number for the SSH connection- Returns:
- the created SSHSocket object
-
close
Closes the SSHSocket and removes it from the sockets HashMap if it exists.- Parameters:
socketIO- the SSHSocket to be closed
-