ConnectorFactory
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if an SSH agent is available and connected,
false if no SSH agent is availableConnects to an SSH agent if there is one running. |
| public byte[] | Returns: the result receivedto send command, byte[] to send; must have at least 5 bytes, and must have 5 unused
bytes at the front. message)Performs a remote call to the SSH agent and returns the result. |
| public default byte[] | Returns: the result receivedto send command)Performs a remote call sending only a command without any parameters to the SSH agent and returns the result. |
| connect | back to summary |
|---|---|
| public boolean connect() throws IOException Connects to an SSH agent if there is one running. If called when already
connected just returns
| |
| rpc | back to summary |
|---|---|
| public byte[] rpc(byte command, byte[] message) throws IOException Performs a remote call to the SSH agent and returns the result.
| |
| rpc | back to summary |
|---|---|
| public default byte[] rpc(byte command) throws IOException Performs a remote call sending only a command without any parameters to the SSH agent and returns the result.
| |