public class CliManagerImpl extends Object implements CliEntryPoint, Serializable
CliEntryPoint implementation exposed to the remote CLI.VERSION| Constructor and Description |
|---|
CliManagerImpl(hudson.remoting.Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(String protocol,
hudson.remoting.Pipe c2s,
hudson.remoting.Pipe s2c)
Initiates authentication out of band.
|
boolean |
hasCommand(String name)
Does the named command exist?
|
int |
main(List<String> args,
Locale locale,
InputStream stdin,
OutputStream stdout,
OutputStream stderr)
Just like the static main method.
|
int |
protocolVersion()
Returns
CliEntryPoint.VERSION, so that the client and the server can detect version incompatibility
gracefully. |
public int main(List<String> args, Locale locale, InputStream stdin, OutputStream stdout, OutputStream stderr)
CliEntryPointmain in interface CliEntryPointlocale - Locale of this client.public void authenticate(String protocol, hudson.remoting.Pipe c2s, hudson.remoting.Pipe s2c)
CliEntryPointThis method starts two-way byte channel that allows the client and the server to perform authentication. The current supported implementation is based on SSH public key authentication that mutually authenticates clients and servers.
authenticate in interface CliEntryPointprotocol - Currently only "ssh" is supported.public boolean hasCommand(String name)
CliEntryPointhasCommand in interface CliEntryPointpublic int protocolVersion()
CliEntryPointCliEntryPoint.VERSION, so that the client and the server can detect version incompatibility
gracefully.protocolVersion in interface CliEntryPointCopyright © 2019. All rights reserved.