|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CliEntryPoint
Remotable interface for CLI entry point on the server side.
Field Summary | |
---|---|
static int |
VERSION
|
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final int VERSION
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |