Class Ssh
java.lang.Object
de.iip_ecosphere.platform.support.ssh.Ssh
Generic access to SSH. Requires an implementing plugin of type
Ssh or an active
SshProviderDescriptor. Simplified interface akin to Spark.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAuthenticates server accesses.static interfaceThe SSH server with further setup options. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Ssh.SshServercreateServer(de.iip_ecosphere.platform.support.ServerAddress address) Creates an SSH server.static SshReturns the Rest instance.static voidsetInstance(Ssh rest) Manually sets the instance.
-
Field Details
-
instance
-
-
Constructor Details
-
Ssh
public Ssh()
-
-
Method Details
-
getInstance
Returns the Rest instance.- Returns:
- the instance
-
setInstance
Manually sets the instance. Shall not be needed, but may be required in some tests.- Parameters:
rest- the Rest instance
-
createServer
public abstract Ssh.SshServer createServer(de.iip_ecosphere.platform.support.ServerAddress address) throws IOException Creates an SSH server.- Parameters:
address- the server address- Returns:
- the server instance, null if failed
- Throws:
IOException
-