@@ -43,10 +43,10 @@ public static Path testTruststorePath(String name) {
4343 * Creates an empty truststore.
4444 *
4545 * @return An empty KeyStore object.
46- * @throws KeyStoreException If there's an error initializing the truststore.
47- * @throws IOException If there's an error loading the truststore.
46+ * @throws KeyStoreException If there's an error initializing the truststore.
47+ * @throws IOException If there's an error loading the truststore.
4848 * @throws NoSuchAlgorithmException If the algorithm used to check the integrity of the truststore cannot be found.
49- * @throws CertificateException If any of the certificates in the truststore could not be loaded.
49+ * @throws CertificateException If any of the certificates in the truststore could not be loaded.
5050 */
5151 private static KeyStore createTruststore ()
5252 throws KeyStoreException , IOException , NoSuchAlgorithmException , CertificateException {
@@ -73,8 +73,8 @@ private static X509Certificate loadCertificate(Path certPath) throws Exception {
7373 * Adds a trusted certificate to the given truststore.
7474 *
7575 * @param trustStore The KeyStore object.
76- * @param alias Alias for the certificate.
77- * @param certPath Path to the certificate file.
76+ * @param alias Alias for the certificate.
77+ * @param certPath Path to the certificate file.
7878 * @throws Exception If there's an error adding the certificate.
7979 */
8080 private static void addTrustedCertificate (KeyStore trustStore , String alias , Path certPath ) throws Exception {
@@ -85,8 +85,8 @@ private static void addTrustedCertificate(KeyStore trustStore, String alias, Pat
8585 /**
8686 * Creates a truststore, adds multiple trusted certificates, and saves it to the specified path.
8787 *
88- * @param trustedCertPaths List of certificate file paths to add to the truststore.
89- * @param truststorePath Path to save the generated truststore.
88+ * @param trustedCertPaths List of certificate file paths to add to the truststore.
89+ * @param truststorePath Path to save the generated truststore.
9090 * @param truststorePassword Password for the truststore.
9191 * @return Path to the saved truststore file.
9292 */
@@ -111,7 +111,7 @@ public static Path createAndSaveTruststore(List<Path> trustedCertPaths, Path tru
111111 }
112112
113113 public static Path createAndSaveTestTruststore (String trustStoreName , Path certificateLocations ,
114- String truststorePassword ) {
114+ String truststorePassword ) {
115115 List <Path > trustedCertPaths = new ArrayList <>();
116116 trustedCertPaths .add (envCa (certificateLocations ).toAbsolutePath ());
117117 trustedCertPaths .add (envServerCert (certificateLocations ).toAbsolutePath ());
@@ -120,4 +120,5 @@ public static Path createAndSaveTestTruststore(String trustStoreName, Path certi
120120
121121 return createAndSaveTruststore (trustedCertPaths , trustStorePath , truststorePassword );
122122 }
123- }
123+
124+ }
0 commit comments