public interface CliEntryPoint
Modifier and Type | Field and Description |
---|---|
static int |
VERSION |
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
VERSION , so that the client and the server can detect version incompatibility
gracefully. |
static final int VERSION
int main(List<String> args, Locale locale, InputStream stdin, OutputStream stdout, OutputStream stderr)
locale
- Locale of this client.boolean hasCommand(String name)
int protocolVersion()
VERSION
, so that the client and the server can detect version incompatibility
gracefully.void authenticate(String protocol, hudson.remoting.Pipe c2s, hudson.remoting.Pipe s2c)
This 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.
protocol
- Currently only "ssh" is supported.UnsupportedOperationException
- If the specified protocol is not supported by the server.Copyright © 2017. All rights reserved.