@@ -194,7 +194,13 @@ public Repository<RequirementValidation> requirementValidations() {
194194
195195 /**
196196 * Uploads one encrypted file to /encrypted_files as multipart/form-data.
197- * Returns encrypted file IDs provided by API response.
197+ *
198+ * @param encryptedData encrypted file bytes to upload
199+ * @param fileName original file name sent as the multipart part name
200+ * @param fingerprint encryption key fingerprint identifying the public key used
201+ * @param description optional human-readable description for the file (may be {@code null})
202+ * @return list of encrypted file IDs returned by the API
203+ * @throws DidwwClientException if the upload fails or the response is unexpected
198204 */
199205 public List <String > uploadEncryptedFile (byte [] encryptedData ,
200206 String fileName ,
@@ -257,6 +263,10 @@ public List<String> uploadEncryptedFile(byte[] encryptedData,
257263
258264 /**
259265 * Downloads an export file to the given path.
266+ *
267+ * @param url URL of the export file to download
268+ * @param destination local path where the file will be written
269+ * @throws DidwwClientException if the download fails or the response body is empty
260270 */
261271 public void downloadExport (String url , Path destination ) {
262272 Request request = new Request .Builder ().url (url ).get ().build ();
@@ -278,6 +288,10 @@ public void downloadExport(String url, Path destination) {
278288
279289 /**
280290 * Downloads a gzip-compressed export file (.csv.gz) and writes the decompressed CSV to the given path.
291+ *
292+ * @param url URL of the gzip-compressed export file to download
293+ * @param destination local path where the decompressed CSV will be written
294+ * @throws DidwwClientException if the download or decompression fails
281295 */
282296 public void downloadAndDecompressExport (String url , Path destination ) {
283297 Path tempFile ;
@@ -342,6 +356,9 @@ public Builder readTimeout(Duration readTimeout) {
342356
343357 /**
344358 * Overrides the base URL from the credentials environment. Useful for testing.
359+ *
360+ * @param baseUrl base URL to use instead of the environment default
361+ * @return this builder
345362 */
346363 public Builder baseUrl (String baseUrl ) {
347364 this .baseUrl = baseUrl ;
@@ -351,6 +368,9 @@ public Builder baseUrl(String baseUrl) {
351368 /**
352369 * Sets a custom OkHttpClient.Builder for advanced configuration such as proxy,
353370 * SSL, interceptors, etc. The API key interceptor will be added automatically.
371+ *
372+ * @param httpClientBuilder custom OkHttpClient builder to use as the base
373+ * @return this builder
354374 */
355375 public Builder httpClientBuilder (OkHttpClient .Builder httpClientBuilder ) {
356376 this .httpClientBuilder = httpClientBuilder ;
0 commit comments