public CompletableFuture postCreateAssessment()

in src/main/java/com/google/recaptcha/pld/pld/controllers/PldController.java [50:58]


  public CompletableFuture<PldLeakedResult> postCreateAssessment(
      @Valid @RequestBody PlaintextCredentials credentials)
      throws InterruptedException, ExecutionException {

    return pldService
        .newPasswordCheckVerification(credentials)
        .thenCompose(verification -> executePasswordLeakAssessment(verification))
        .thenApply(status -> new PldLeakedResult(status));
  }