/** * Start the protocol in one-way mode: this instance only issues commands. Any commands from remote will return * error 'unknown_command' */ public void start() { start(new Target() { @Override public Object onCommand(Command command) throws Exception { throw new RemoteException("unknown_command", "command is not known"); } }); }
public BitrustedConnector connect(Predicate<byte[]> isTrustedKey) throws Error, TimeoutException, InterruptedException { Future<?> initDone = pool.submit(() -> { this.isTrustedKey = isTrustedKey; connection.start(this); Binder result = Binder.from( connection.sendKeyParams(