aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java')
-rw-r--r--netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java b/netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java
index edd5899..e7a101d 100644
--- a/netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java
+++ b/netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java
@@ -52,6 +52,7 @@ import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
+import net.sourceforge.jnlp.util.logging.OutputController;
import sun.security.util.DerValue;
import sun.security.util.HostnameChecker;
@@ -98,7 +99,7 @@ public class HttpsCertVerifier implements CertVerifier {
try {
certPaths.add(CertificateFactory.getInstance("X.509").generateCertPath(list));
} catch (CertificateException ce) {
- ce.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, ce);
// carry on
}
@@ -187,9 +188,9 @@ public class HttpsCertVerifier implements CertVerifier {
names = names.substring(2); // remove proceeding ", "
} catch (CertificateParsingException cpe) {
- cpe.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, cpe);
} catch (IOException ioe) {
- ioe.printStackTrace();
+ OutputController.getLogger().log(OutputController.Level.ERROR_ALL, ioe);
}
return names;