java.lang.Object
com.identisure.client.DocumentEndpoint
Endpoint for document upload and download operations.
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<byte[]>Download a previously uploaded or signed document.Upload a document with the default MIME typeapplication/pdf.Upload a document for use in signing sessions.
-
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
Upload a document with the default MIME typeapplication/pdf. -
download
Download a previously uploaded or signed document.- Returns:
- Raw file bytes.
-