Hi Anton

Sorry I'm not a guru in keytools but why catch exceptions and resend them?

+        try {
+            // try to load the keystore
+            keyStore.load(fis, storePass);
+        } catch (NoSuchAlgorithmException e) {
+            throw new NoSuchAlgorithmException(
+                    "Failed to find the algorithm to check the
keystore integrity",
+                    e);
+        } catch (CertificateException e) {
+            throw new CertificateException(
+                    "Failed to load a certificate from the keystore. ", e);
+        } catch (IOException e) {
+            throw (IOException) new IOException("Failed to load the
keystore. ")
+                    .initCause(e);
+        }
+        return keyStore;
+    }

Thanks,
Mikhail

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to