You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/Api/BatchUploadwithMTLSApi.java
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
importjava.io.File;
4
4
importjava.security.PrivateKey;
5
5
importjava.security.cert.X509Certificate;
6
+
importjava.util.Collection;
6
7
7
8
importorg.apache.logging.log4j.LogManager;
8
9
importorg.apache.logging.log4j.Logger;
@@ -30,9 +31,9 @@ public class BatchUploadwithMTLSApi {
30
31
* @param inputFile The file to be uploaded.
31
32
* @param environmentHostname The environment hostname (e.g., secure-batch-test.cybersource.com).
32
33
* @param pgpEncryptionCertPath Path to the PGP encryption certificate.
33
-
* @param keystorePath Path to the JKS keystore file.
34
+
* @param keystorePath Path to the JKS keystore file containing client certificates.
34
35
* @param keystorePassword Password for the keystore.
35
-
* @param truststorePath Path to the truststore file.
36
+
* @param truststorePath Path to the JKS truststore file containing trusted server certificates. <b>Optional</b>: Can be <code>null</code> if not required.
36
37
* @param truststorePassword Password for the truststore.
37
38
* @return ApiResponse containing the server response as a String.
38
39
* @throws ApiException If an API error occurs.
@@ -56,9 +57,9 @@ public ApiResponse<String> uploadBatchAPI(File inputFile, String environmentHost
56
57
* @param inputFile The file to be uploaded.
57
58
* @param environmentHostname The environment hostname (e.g., api.cybersource.com).
58
59
* @param pgpEncryptionCertPath Path to the PGP encryption certificate.
59
-
* @param clientCertP12FilePath Path to the PKCS#12 client certificate file.
60
+
* @param clientCertP12FilePath Path to the PKCS#12 client certificate file (.p12 or .pfx).
60
61
* @param clientCertP12Password Password for the PKCS#12 client certificate.
61
-
* @param serverTrustCertPath Path to the server trust certificate.
62
+
* @param serverTrustCertPath Path to the server trust certificate(s) in PEM format. <b>Optional</b>: Can be <code>null</code> if not required.
62
63
* @return ApiResponse containing the server response as a String.
63
64
* @throws ApiException If an API error occurs.
64
65
* @throws Exception If a general error occurs.
@@ -83,20 +84,20 @@ public ApiResponse<String> uploadBatchAPI(File inputFile, String environmentHost
83
84
* @param pgpPublicKey The PGP public key for encryption.
84
85
* @param clientPrivateKey The client's private key.
85
86
* @param clientCert The client's X509 certificate.
86
-
* @param serverTrustCert The server's trust X509 certificate.
87
+
* @param serverTrustCerts A collection of server's trusted X509 certificates (can be a certificate chain). <b>Optional</b>: Can be <code>null</code> or empty if not required.
87
88
* @return ApiResponse containing the server response as a String.
0 commit comments