public class NativeSecureConnection
extends java.lang.Object
spawn
tool when no password is specified and authentication needs to be done via P2J.Constructor and Description |
---|
NativeSecureConnection() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
command(int port,
java.lang.String host,
java.lang.String alias,
java.lang.String uuid,
java.lang.String misc)
Establish a secure connection to the target P2J server and retrieve the spawn command
registered with this request, via the specified UUID.
|
private static java.lang.String[] |
remote(java.lang.String[] args)
Prepare command substituting placeholder with broker values.
|
public static java.lang.String[] command(int port, java.lang.String host, java.lang.String alias, java.lang.String uuid, java.lang.String misc)
Authentication will be performed with the temporary credentials set in the environment. If
the secure connection is not possible, the received certificate can not be validated or
if the authentication is not possible, it returns null
.
port
- The P2J server's secure port.host
- The P2J server's host.alias
- The certificate alias.uuid
- The UUID identifying this request.misc
- Misc. BootstrapConfig overridesnull
.private static java.lang.String[] remote(java.lang.String[] args)
args
- Command arguments read from server.