Class DocumentEndpoint

java.lang.Object
se.idkollen.client.endpoints.DocumentEndpoint

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

  • Method Details

    • uploadAsync

      public CompletableFuture<DocumentUploadResponse> uploadAsync(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.
    • uploadAsync

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

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

      public CompletableFuture<Void> deleteAsync(String id)
      Delete a previously uploaded document.