aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/security
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2011-09-22 17:41:51 +0200
committerJiri Vanek <[email protected]>2011-09-22 17:41:51 +0200
commitd791f8ea414740894cc21b3ddc7925c6c323e821 (patch)
tree715a39ee9439c4f0a82ec6289524513811c3b92b /netx/net/sourceforge/jnlp/security
parent451529c4953d24e031f747fe1dee6cd8b1bb7574 (diff)
added XrustAll option
Diffstat (limited to 'netx/net/sourceforge/jnlp/security')
-rw-r--r--netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java b/netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java
index 5eb790d..b6f1377 100644
--- a/netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java
+++ b/netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java
@@ -53,6 +53,7 @@ import sun.security.util.HostnameChecker;
import sun.security.validator.ValidatorException;
import com.sun.net.ssl.internal.ssl.X509ExtendedTrustManager;
+import net.sourceforge.jnlp.runtime.JNLPRuntime;
import net.sourceforge.jnlp.security.SecurityDialogs.AccessType;
@@ -382,6 +383,9 @@ final public class VariableX509TrustManager extends X509ExtendedTrustManager {
private boolean askUser(X509Certificate[] chain, String authType,
boolean isTrusted, boolean hostMatched,
String hostName) {
+ if (JNLPRuntime.isTrustAll()){
+ return true;
+ }
return SecurityDialogs.showCertWarningDialog(
AccessType.UNVERIFIED, null,
new HttpsCertVerifier(this, chain, authType,