Class DocumentEndpoint

java.lang.Object
com.identisure.client.DocumentEndpoint

public class DocumentEndpoint extends Object
Endpoint for document upload and download operations.
  • Method Details

    • upload

      public CompletableFuture<DocumentUploadResponse> upload(byte[] bytes, String filename, String mimeType)
      Upload a document for use in signing sessions.
      Parameters:
      bytes - Raw file bytes.
      filename - File name sent in the multipart form.
      mimeType - MIME type of the file.
      Returns:
      Upload response containing the document UUID and hash.
    • upload

      public CompletableFuture<DocumentUploadResponse> upload(byte[] bytes, String filename)
      Upload a document with the default MIME type application/pdf.
    • download

      public CompletableFuture<byte[]> download(String id)
      Download a previously uploaded or signed document.
      Returns:
      Raw file bytes.