message: Aries LibVCX: Fix java wrapper
diff: @@ -145,6 +145,7 @@ public class DisclosedProofApi extends VcxJava.API {
  }
  +
  public static int proofRelease(int proofHandle) throws VcxException {
  ParamGuard.notNull(proofHandle, "proofHandle");
  logger.debug("proofRelease() called with: proofHandle = [" + proofHandle + "]");
  @@ -308,6 +309,29 @@ public class DisclosedProofApi extends VcxJava.API {
  return future;
  }
  + private static Callback vcxProofDeserializeCB = new Callback() {
  + public void callback(int command_handle, int err, int proofHandle) {
  + logger.debug("callback() called with: command_handle = [" + command_handle + "], err = [" + err + "], proofHandle = [" + proofHandle + "]");
  + CompletableFuture<Integer> future = (CompletableFuture<Integer>) removeFuture(command_handle);
  + if(!checkCallback(future, err)) return;
  +
  + future.complete(proofHandle);
  + }
  + };
  +
  + public static CompletableFuture<Integer> proofDeserialize(
  + String serializedProof
  + ) throws VcxException {
  + ParamGuard.notNull(serializedProof, "serializedProof");
  + logger.debug("proofDeserialize() called with: serializedProof = [" + serializedProof + "]");
  + CompletableFuture<Integer> future = new CompletableFuture<Integer>();
  + int commandHandle = addFuture(future);
  +
  + int result = LibVcx.api.vcx_disclosed_proof_deserialize(commandHandle, serializedProof, vcxProofDeserializeCB);
  + checkResult(result);
  +
  + return future;
  + }
  private static Callback vcxDeclinePresentationRequestCB = new Callback() {
  public void callback(int command_handle, int err) {
  @@ -336,28 +360,4 @@ public class DisclosedProofApi extends VcxJava.API {
  return future;
  }
  - private static Callback vcxProofDeserializeCB = new Callback() {
  - public void callback(int command_handle, int err, int proofHandle) {
  - logger.debug("callback() called with: command_handle = [" + command_handle + "], err = [" + err + "], proofHandle = [" + proofHandle + "]");
  - CompletableFuture<Integer> future = (CompletableFuture<Integer>) removeFuture(command_handle);
  - if (! checkCallback(future, err)) return;
  -
  - future.complete(proofHandle);
  - }
  - };
  -
  - public static CompletableFuture<Integer> proofDeserialize(
  - String serializedProof
  - ) throws VcxException {
  - ParamGuard.notNull(serializedProof, "serializedProof");
  - logger.debug("proofDeserialize() called with: serializedProof = [" + serializedProof + "]");
  - CompletableFuture<Integer> future = new CompletableFuture<Integer>();
  - int commandHandle = addFuture(future);
  -
  - int result = LibVcx.api.vcx_disclosed_proof_deserialize(commandHandle, serializedProof, vcxProofDeserializeCB);
  - checkResult(result);
  -
  - return future;
  - }
  -
  }
  