class RestfulEnclaveClient implements EnclaveClient {

    @Override
    public PublicKey defaultPublicKey() {

        return ClientCallback.execute(
                () -> {
                    Response response = client.target(uri).path("default").request().get();

                    validateResponseIsOk(response);

                    byte[] data = response.readEntity(byte[].class);

                    return PublicKey.from(data);
                });
    }

    public  RestfulEnclaveClient(Client client, URI uri);
    public  RestfulEnclaveClient(Client client, URI uri, ExecutorService executorService);

}