public static void checkUsageForCodeSigning( X509Certificate paramX509Certificate, int paramInt, boolean paramBoolean) throws CertificateException, IOException { String str = null; Set localSet = paramX509Certificate.getCriticalExtensionOIDs(); if (localSet == null) localSet = Collections.EMPTY_SET; if (!checkBasicConstraintsForCodeSigning(paramX509Certificate, localSet, paramInt)) { Trace.msgSecurityPrintln("trustdecider.check.basicconstraints"); str = ResourceManager.getMessage("trustdecider.check.basicconstraints"); throw new CertificateException(str); } if (paramInt == 0) { if (!checkLeafKeyUsageForCodeSigning(paramX509Certificate, localSet, paramBoolean)) { Trace.msgSecurityPrintln("trustdecider.check.leafkeyusage"); str = ResourceManager.getMessage("trustdecider.check.leafkeyusage"); throw new CertificateException(str); } } else if (!checkSignerKeyUsage(paramX509Certificate, localSet)) { Trace.msgSecurityPrintln("trustdecider.check.signerkeyusage"); str = ResourceManager.getMessage("trustdecider.check.signerkeyusage"); throw new CertificateException(str); } if (!localSet.isEmpty()) { Trace.msgSecurityPrintln("trustdecider.check.extensions"); str = ResourceManager.getMessage("trustdecider.check.extensions"); throw new CertificateException(str); } }
static boolean hasAIAExtensionWithOCSPAccessMethod(X509Certificate paramX509Certificate) throws IOException { AuthorityInfoAccessExtension localAuthorityInfoAccessExtension = null; Object localObject; if ((paramX509Certificate instanceof X509CertImpl)) { localAuthorityInfoAccessExtension = ((X509CertImpl) paramX509Certificate).getAuthorityInfoAccessExtension(); } else { localObject = paramX509Certificate.getExtensionValue("1.3.6.1.5.5.7.1.1"); if (localObject == null) { Trace.msgSecurityPrintln("trustdecider.check.validation.ocsp.notfound"); return false; } if (localObject[0] == 4) localObject = new DerValue(localObject).getOctetString(); Trace.msgSecurityPrintln(extractSubjectAliasName(paramX509Certificate)); localAuthorityInfoAccessExtension = new AuthorityInfoAccessExtension(new Boolean(false), localObject); } if (localAuthorityInfoAccessExtension != null) { Trace.msgSecurityPrintln(localAuthorityInfoAccessExtension.toString()); localObject = localAuthorityInfoAccessExtension.getAccessDescriptions(); Iterator localIterator = ((List) localObject).iterator(); while (localIterator.hasNext()) { AccessDescription localAccessDescription = (AccessDescription) localIterator.next(); if (localAccessDescription.getAccessMethod().equals(AccessDescription.Ad_OCSP_Id)) return true; } } return false; }
public void init() { markAlive(true); Trace.println("TextAppletAdapter init()", TraceLevel.UI); try { getApplet2().init(getApplet2Context()); } catch (Throwable localThrowable) { Trace.ignored(localThrowable); throw new RuntimeException("Call to applet2.init() failed", localThrowable); } }
static boolean checkTLSClient(X509Certificate paramX509Certificate) throws CertificateException { if (!checkKeyUsage(paramX509Certificate, 0)) { Trace.msgSecurityPrintln("clientauth.checkTLSClient.checkKeyUsage"); return false; } if (!checkEKU(paramX509Certificate, "1.3.6.1.5.5.7.3.2")) { Trace.msgSecurityPrintln("clientauth.checkTLSClient.checkEKU"); return false; } return true; }
protected void enableJnlp( OperaPreferences paramOperaPreferences, File paramFile1, File paramFile2, boolean paramBoolean) throws IOException { if (paramOperaPreferences == null) paramOperaPreferences = getPreferences(paramFile1); if (paramOperaPreferences != null) { float f = 5.0F; String str = paramOperaPreferences.get("INSTALL", "OVER"); if (str != null) try { f = Float.parseFloat(str.trim()); } catch (NumberFormatException localNumberFormatException) { Trace.println( "Unable to determine Opera version from the preference file; assuming 5.0 or higher.", TraceLevel.BASIC); } if (f < 5.0F) { paramOperaPreferences.put("File Types Section Info", "Version", "1"); } else if (!paramOperaPreferences.containsKey("File Types Section Info", "Version")) { if (f > 7.11F) Trace.println( "Setting '[File Types Section Info]Version=2' in the Opera preference file.", TraceLevel.BASIC); paramOperaPreferences.put("File Types Section Info", "Version", "2"); } if ((paramBoolean == true) || (!paramOperaPreferences.containsKey("File Types", "application/x-java-jnlp-file"))) { Object[] arrayOfObject = {null, null}; if ((f < 5.0F) || (!this.useDefault)) { arrayOfObject[0] = "3"; try { arrayOfObject[1] = paramFile2.getCanonicalPath(); } catch (IOException localIOException) { arrayOfObject[1] = paramFile2.getAbsolutePath(); } } else { arrayOfObject[0] = "4"; arrayOfObject[1] = ""; } paramOperaPreferences.put( "File Types", "application/x-java-jnlp-file", MessageFormat.format("{0},{1},,,jnlp,|", arrayOfObject)); } if ((f >= 5.0F) && (!paramOperaPreferences.containsKey( "File Types Extension", "application/x-java-jnlp-file"))) paramOperaPreferences.put("File Types Extension", "application/x-java-jnlp-file", ",0"); paramOperaPreferences.store(new FileOutputStream(paramFile1)); } }
static boolean getCertCRLExtension(X509Certificate paramX509Certificate) throws IOException { byte[] arrayOfByte = paramX509Certificate.getExtensionValue("2.5.29.31"); if (arrayOfByte == null) { Trace.msgSecurityPrintln("trustdecider.check.validation.crl.notfound"); return false; } if (arrayOfByte[0] == 4) arrayOfByte = new DerValue(arrayOfByte).getOctetString(); Trace.msgSecurityPrintln(extractSubjectAliasName(paramX509Certificate)); CRLDistributionPointsExtension localCRLDistributionPointsExtension = new CRLDistributionPointsExtension(new Boolean(false), arrayOfByte); Trace.msgSecurityPrintln(localCRLDistributionPointsExtension.toString()); return true; }
public static int show( String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8, String paramString9, String paramString10, String paramString11, String paramString12) { if (_isMainToolkitThread()) return showImmediately( paramString1, paramString2, paramString3, paramString4, paramString5, paramString6, paramString7, paramString8, paramString9, paramString10, paramString11, paramString12); String[] arrayOfString = { Environment.getJavaHome() + "/bin/java", "-cp", Environment.getJavaHome() + "/lib/deploy.jar", "com.sun.deploy.uitoolkit.ui.NativeMixedCodeDialog", paramString12 }; Trace.println( "NativeMixedCodeDialog executes the command in a separate process:", TraceLevel.UI); for (int i = 0; i < arrayOfString.length; i++) Trace.println(" args[" + i + "]=" + arrayOfString[i], TraceLevel.UI); i = -1; try { Process localProcess = Runtime.getRuntime().exec(arrayOfString); i = localProcess.waitFor(); _activateCurrentProcess(); } catch (Throwable localThrowable) { Trace.ignored(localThrowable); i = -1; } return i; }
public synchronized Preloader instantiatePreloader(Class paramClass) { Trace.println("TextAppletAdapter createCustomProgress " + paramClass, TraceLevel.UI); if (paramClass != null) try { Class[] arrayOfClass = {Applet2Context.class}; Object[] arrayOfObject = {null}; Constructor localConstructor = null; localConstructor = paramClass.getConstructor(arrayOfClass); this.preloader = ((Preloader) localConstructor.newInstance(arrayOfObject)); } catch (Exception localException) { Trace.ignored(localException); } if (this.preloader == null) this.preloader = new TextPreloader(); return this.preloader; }
public synchronized void instantiateApplet(Class paramClass) throws InstantiationException, IllegalAccessException { Trace.println("TextAppletAdapter instantiateApplet(): " + paramClass, TraceLevel.UI); if (null != this.applet) throw new IllegalStateException(); if (!Applet2.class.isAssignableFrom(paramClass)) throw new IllegalArgumentException(); this.applet = paramClass.newInstance(); }
/* */ private static void report(JSObject js, Record r) /* */ { /* 179 */ long now = System.nanoTime(); /* 180 */ long offset = (r.tm - now) / 1000000L; /* 181 */ String label = r.label; /* */ /* 183 */ if (lastReported == 0L) { /* 184 */ firstReported = now; /* */ } /* */ /* 188 */ if (lastReported != 0L) { /* 189 */ label = "[" + (now - firstReported + 500000L) / 1000000L + " ms" + "(delta=" + (now - lastReported + 500000L) / 1000000L + ")] " + label; /* */ } /* */ /* 196 */ Trace.println("PERFLOG: report [" + label + "]"); /* 197 */ js.eval( "if (typeof perfLog == 'function') { perfLog(" + offset + ", '" + label + "');}"); /* */ /* 199 */ lastReported = now; /* */ }
/* */ public PerfLoggerThread() { /* 68 */ super(); /* 69 */ setDaemon(true); /* 70 */ if (DeployPerfLogger.PERF_LOG_ENABLED) { /* 71 */ Trace.println("Starting perf tracing thread"); /* 72 */ start(); /* */ } /* */ }
public DesktopEntryFile(String paramString) { if (null == paramString) throw new NullPointerException("uri is null!"); if (paramString.indexOf("://") == 0) throw new IllegalArgumentException("Invalid URI[" + paramString + "]!"); this.uri = paramString; this.desktopEntries = new ArrayList(); Trace.println("new DesktopEntryFile uri = [" + paramString + "]", TraceLevel.BASIC); }
/* */ public void run() { /* */ try { /* 78 */ boolean doRun = true; /* 79 */ long tm = System.currentTimeMillis(); /* 80 */ while (doRun) { /* 81 */ if (DeployPerfLogger.access$000() != null) { /* */ try { /* 83 */ DeployPerfLogger.access$100(); /* 84 */ DeployPerfLogger.access$202(false); /* */ } catch (Exception e) { /* 86 */ if (DeployPerfLogger.gotError) /* */ { /* 88 */ doRun = false; /* 89 */ Trace.ignoredException(e); /* */ } else { /* 91 */ DeployPerfLogger.access$202(true); /* */ } /* 93 */ synchronized (DeployPerfLogger.class) { /* 94 */ DeployPerfLogger.access$302(null); /* */ } /* */ } /* */ } /* 98 */ else if (System.currentTimeMillis() - tm > 5000L) { /* 99 */ Trace.println("Stop perf tracing as could not get JS object"); /* */ /* 101 */ doRun = false; /* */ } /* */ /* 104 */ synchronized (DeployPerfLogger.queue) /* */ { /* */ try { /* 107 */ DeployPerfLogger.queue.wait(10000L); /* */ } catch (InterruptedException ie) { /* 109 */ doRun = false; /* */ } /* */ } /* */ } /* */ } catch (Throwable t) { /* 114 */ Trace.ignored(t); /* */ } finally { /* 116 */ synchronized (this) { /* 117 */ this.isActive = false; /* */ } /* */ } /* */ }
public static KeyStore createEmptyKeyStore() { KeyStore localKeyStore = null; try { localKeyStore = KeyStore.getInstance("JKS"); localKeyStore.load(null, null); } catch (Exception localException) { Trace.ignoredException(localException); } return localKeyStore; }
public boolean deleteToNonEmptyParent() { for (DesktopEntryFile localDesktopEntryFile = this; (null != localDesktopEntryFile) && (localDesktopEntryFile.exists()) && (!localDesktopEntryFile.getURI().matches(".*://")) && (localDesktopEntryFile.delete()); localDesktopEntryFile = localDesktopEntryFile.getParentDesktopEntryFile()) Trace.println("file deleted " + localDesktopEntryFile.toString(), TraceLevel.BASIC); return true; }
private static boolean checkSignerKeyUsage(X509Certificate paramX509Certificate, Set paramSet) throws CertificateException, IOException { paramSet.remove("2.5.29.15"); boolean[] arrayOfBoolean = paramX509Certificate.getKeyUsage(); if ((arrayOfBoolean != null) && ((arrayOfBoolean.length < 6) || (arrayOfBoolean[5] == 0))) { Trace.msgSecurityPrintln("trustdecider.check.signerkeyusage.lengthandbit"); return false; } List localList = X509Util.getExtendedKeyUsage(paramX509Certificate); Set localSet = paramX509Certificate.getNonCriticalExtensionOIDs(); if ((localList != null) && ((paramSet.contains("2.5.29.37")) || (localSet.contains("2.5.29.37")))) { paramSet.remove("2.5.29.37"); if ((!localList.contains("2.5.29.37.0")) && (!localList.contains("1.3.6.1.5.5.7.3.3"))) { Trace.msgSecurityPrintln("trustdecider.check.signerkeyusage.keyusage"); return false; } } return true; }
public void preverifyJARs() { if (!ResourceProvider.get().canCache(null)) return; long l1 = System.currentTimeMillis(); for (int i = 0; i < this._jarsInURLClassLoader.size(); i++) { JARDesc localJARDesc = (JARDesc) this._jarsInURLClassLoader.get(i); ResourceProvider.get() .preverifyCachedJar(localJARDesc.getLocation(), localJARDesc.getVersion(), this); } long l2 = System.currentTimeMillis(); Trace.println( "PreverificationCL, Cached JAR preverification took (ms): " + (l2 - l1), TraceLevel.CACHE); }
private void writeEntryInternal() throws IOException { DesktopEntryFile localDesktopEntryFile = getParentDesktopEntryFile(); ArrayList localArrayList = new ArrayList(); while ((null != localDesktopEntryFile) && (!localDesktopEntryFile.exists())) { localArrayList.add(localDesktopEntryFile); localDesktopEntryFile = localDesktopEntryFile.getParentDesktopEntryFile(); } for (int i = localArrayList.size() - 1; i >= 0; i--) { localDesktopEntryFile = (DesktopEntryFile) localArrayList.get(i); Trace.println( "writeEntryInternal mkdir " + localDesktopEntryFile.toString(), TraceLevel.BASIC); localDesktopEntryFile.mkdir(); } StringBuffer localStringBuffer = new StringBuffer(); Iterator localIterator = this.desktopEntries.iterator(); while (localIterator.hasNext()) { localStringBuffer.append(localIterator.next()); localStringBuffer.append("\n"); } Trace.println("gnome_vfs_write_file [" + this.uri.toString() + "]", TraceLevel.BASIC); boolean bool = gnome_vfs_write_file(this.uri.toString(), localStringBuffer.toString()); }
private static boolean checkLeafKeyUsageForCodeSigning( X509Certificate paramX509Certificate, Set paramSet, boolean paramBoolean) throws CertificateException, IOException { paramSet.remove("2.5.29.15"); boolean[] arrayOfBoolean = paramX509Certificate.getKeyUsage(); if (arrayOfBoolean != null) { if (arrayOfBoolean.length == 0) { Trace.msgSecurityPrintln("trustdecider.check.leafkeyusage.length"); return false; } int i = arrayOfBoolean[0]; if (i == 0) { Trace.msgSecurityPrintln("trustdecider.check.leafkeyusage.digitalsignature"); return false; } } List localList = X509Util.getExtendedKeyUsage(paramX509Certificate); Set localSet = paramX509Certificate.getNonCriticalExtensionOIDs(); if ((localList != null) && ((paramSet.contains("2.5.29.37")) || (localSet.contains("2.5.29.37")))) { paramSet.remove("2.5.29.37"); if (paramBoolean) { if ((!localList.contains("2.5.29.37.0")) && (!localList.contains("1.3.6.1.5.5.7.3.8"))) { Trace.msgSecurityPrintln("trustdecider.check.leafkeyusage.tsaextkeyusageinfo"); return false; } } else if ((!localList.contains("2.5.29.37.0")) && (!localList.contains("1.3.6.1.5.5.7.3.3"))) { Trace.msgSecurityPrintln("trustdecider.check.leafkeyusage.extkeyusageinfo"); return false; } } if ((paramX509Certificate.getExtensionValue("2.16.840.1.113730.1.1") != null) && (!getNetscapeCertTypeBit(paramX509Certificate, "object_signing"))) { Trace.msgSecurityPrintln("trustdecider.check.leafkeyusage.certtypebit"); return false; } return true; }
protected OperaPreferences getPreferences(File paramFile) throws IOException { OperaPreferences localOperaPreferences = null; if (paramFile.exists()) { if (paramFile.canRead()) { if (paramFile.canWrite()) { localOperaPreferences = new OperaPreferences(); localOperaPreferences.load(new FileInputStream(paramFile)); } else { Trace.println( "No write access to the Opera preference file (" + paramFile.getAbsolutePath() + ").", TraceLevel.BASIC); } } else Trace.println( "No read access to the Opera preference file (" + paramFile.getAbsolutePath() + ").", TraceLevel.BASIC); } else Trace.println( "The Opera preference file (" + paramFile.getAbsolutePath() + ") does not exist.", TraceLevel.BASIC); return localOperaPreferences; }
private static boolean checkBasicConstraintsForCodeSigning( X509Certificate paramX509Certificate, Set paramSet, int paramInt) throws CertificateException, IOException { paramSet.remove("2.5.29.19"); paramSet.remove("2.16.840.1.113730.1.1"); if (paramInt == 0) return true; if (paramX509Certificate.getExtensionValue("2.5.29.19") == null) { if (paramX509Certificate.getExtensionValue("2.16.840.1.113730.1.1") != null) { if (!getNetscapeCertTypeBit(paramX509Certificate, "object_signing_ca")) { Trace.msgSecurityPrintln("trustdecider.check.basicconstraints.certtypebit"); return false; } } else { Trace.msgSecurityPrintln("trustdecider.check.basicconstraints.extensionvalue"); return false; } } else { if ((paramX509Certificate.getExtensionValue("2.16.840.1.113730.1.1") != null) && ((getNetscapeCertTypeBit(paramX509Certificate, "ssl_ca")) || (getNetscapeCertTypeBit(paramX509Certificate, "s_mime_ca")) || (getNetscapeCertTypeBit(paramX509Certificate, "object_signing_ca"))) && (!getNetscapeCertTypeBit(paramX509Certificate, "object_signing_ca"))) { Trace.msgSecurityPrintln("trustdecider.check.basicconstraints.bitvalue"); return false; } int i = paramX509Certificate.getBasicConstraints(); if (i < 0) { Trace.msgSecurityPrintln("trustdecider.check.basicconstraints.enduser"); return false; } if (paramInt - 1 > i) { Trace.msgSecurityPrintln("trustdecider.check.basicconstraints.pathlength"); return false; } } return true; }
static long getFileLastModified(String paramString) { long l = 0L; try { l = ((Long) AccessController.doPrivileged( new PrivilegedExceptionAction(paramString) { private final String val$filename; public Object run() throws SecurityException { return new Long(new File(this.val$filename).lastModified()); } })) .longValue(); } catch (PrivilegedActionException localPrivilegedActionException) { Trace.securityPrintException(localPrivilegedActionException); } return l; }
public static final void main(String[] paramArrayOfString) { int i = -1; try { TraceListener local1 = new TraceListener() { public void flush() { System.err.flush(); } public void print(String paramAnonymousString) { System.err.print(paramAnonymousString); } }; Trace.addTraceListener(local1); Trace.println("NativeMixedCodeDialog.main enter"); Platform.get(); String str1 = ResourceManager.getString("security.dialog.nativemixcode.title"); String str2 = ResourceManager.getString("security.dialog.nativemixcode.masthead"); String str3 = ResourceManager.getString("security.dialog.nativemixcode.message"); String str4 = ResourceManager.getString("security.dialog.nativemixcode.info"); String str5 = ResourceManager.getString("security.dialog.nativemixcode.blockBtnStr"); String str6 = ResourceManager.getString("security.dialog.nativemixcode.dontBlockBtnStr"); String str7 = ResourceManager.getString("security.dialog.nativemixcode.helpBtnStr"); String str8 = ResourceManager.getString("security.dialog.nativemixcode.closeBtnStr"); String str9 = ResourceManager.getString("security.dialog.nativemixcode.helpTitle"); String str10 = ResourceManager.getString("security.dialog.nativemixcode.helpMessage"); String str11 = ResourceManager.getString("security.dialog.nativemixcode.appLabelStr"); String str12 = paramArrayOfString[0]; if (isSupported()) { i = showImmediately( str1, str2, str3, str4, str5, str6, str7, str8, str9, str10, str11, str12); Trace.println("NativeMixedCodeDialog.show(...) returns " + i); } else { Trace.println("NativeMixedCodeDialog isn't supported"); } Trace.println("NativeMixedCodeDialog.main exit"); Trace.ensureMessageQueueProcessingStarted(); } catch (Throwable localThrowable) { Trace.ignored(localThrowable); i = -1; } System.exit(i); }
/* */ static /* */ { /* 28 */ PERF_LOG_ENABLED = false; /* */ try { /* 30 */ PERF_LOG_ENABLED = ((Boolean) AccessController.doPrivileged( new PrivilegedExceptionAction() /* */ { /* */ public Boolean run() /* */ { /* 35 */ return Boolean.valueOf( "true".equals(System.getProperty("jnlp.fx.perf"))); /* */ } /* */ })) .booleanValue(); /* */ /* 39 */ if (PERF_LOG_ENABLED) /* 40 */ logger = new PerfLoggerThread(); /* */ } /* */ catch (PrivilegedActionException pae) { /* 43 */ Trace.ignored(pae); /* */ } /* */ }
public void doShowApplet() { Trace.println("TextAppletAdapter showApplet()", TraceLevel.UI); }
public synchronized void checkClientTrusted( X509Certificate[] paramArrayOfX509Certificate, String paramString, Socket paramSocket) throws CertificateException { SSLSocket localSSLSocket = (SSLSocket) paramSocket; SSLSession localSSLSession = localSSLSocket.getHandshakeSession(); String str1 = localSSLSocket.getSSLParameters().getEndpointIdentificationAlgorithm(); String str2 = localSSLSession.getPeerHost(); if ((str1 != null) && (!isSupportedAlgorithm(str1))) return; boolean bool = false; int i = 0; if (this.trustManager == null) throw new IllegalStateException("TrustManager should not be null"); int j = -1; try { rootStore.load(); sslRootStore.load(); permanentStore.load(); sessionStore.load(); deniedStore.load(); if ((browserSSLRootStore != null) && (!isBrowserSSLRootStoreLoaded)) { browserSSLRootStore.load(); isBrowserSSLRootStoreLoaded = true; } if (deniedStore.contains(paramArrayOfX509Certificate[0])) throw new CertificateException("Certificate has been denied"); if (!alwaysShow) try { this.trustManager.checkClientTrusted( paramArrayOfX509Certificate, paramString, localSSLSocket); return; } catch (CertificateException localCertificateException1) { } if (sessionStore.contains(paramArrayOfX509Certificate[0])) return; if (permanentStore.contains(paramArrayOfX509Certificate[0])) return; if ((paramArrayOfX509Certificate != null) && (paramArrayOfX509Certificate.length > 0)) { k = paramArrayOfX509Certificate.length - 1; if ((!rootStore.verify(paramArrayOfX509Certificate[k])) && (!sslRootStore.verify(paramArrayOfX509Certificate[k])) && ((browserSSLRootStore == null) || (!browserSSLRootStore.verify(paramArrayOfX509Certificate[k])))) bool = true; } for (int k = 0; k < paramArrayOfX509Certificate.length; k++) try { paramArrayOfX509Certificate[k].checkValidity(); } catch (CertificateExpiredException localCertificateExpiredException) { i = -1; } catch (CertificateNotYetValidException localCertificateNotYetValidException) { i = 1; } if (!Trace.isAutomationEnabled()) { k = (alwaysShow) || (bool) || (i != 0) || ((mismatchShow) && (!CertUtils.checkWildcardDomainList( str2, CertUtils.getServername(paramArrayOfX509Certificate[0])))) ? 1 : 0; if (k != 0) { Trace.msgSecurityPrintln("x509trustmgr.check.invalidcert"); URL localURL = null; try { localURL = new URL("https", localSSLSession.getPeerHost(), localSSLSession.getPeerPort(), ""); } catch (Exception localException) { } j = TrustDeciderDialog.showDialog( paramArrayOfX509Certificate, localURL, 0, paramArrayOfX509Certificate.length, bool, i, null, new AppInfo(), true, str2); } else { j = 0; } } else { Trace.msgSecurityPrintln("x509trustmgr.automation.ignoreclientcert"); j = 0; } if (j == 0) { sessionStore.add(paramArrayOfX509Certificate[0]); sessionStore.save(); } else if (j == 2) { CertStore localCertStore = DeploySSLCertStore.getUserCertStore(); localCertStore.load(true); if (localCertStore.add(paramArrayOfX509Certificate[0])) localCertStore.save(); } else { deniedStore.add(paramArrayOfX509Certificate[0]); deniedStore.save(); } } catch (CertificateException localCertificateException2) { throw localCertificateException2; } catch (Throwable localThrowable) { localThrowable.printStackTrace(); } if ((j != 0) && (j != 2)) throw new CertificateException("Java couldn't trust Client"); }
public void doClearAppletArea() { Trace.println("TextAppletAdapter removeApplet()", TraceLevel.UI); }
public void instantiateSerialApplet(ClassLoader paramClassLoader, String paramString) { Trace.println("Request to load serial applet from " + paramString + ". Noop."); }
public void setParentContainer(Window paramWindow) { Trace.println("TextAppletAdapter setParentContainer(): " + paramWindow, TraceLevel.UI); this.parent = paramWindow; }
private static int showImmediately( String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8, String paramString9, String paramString10, String paramString11, String paramString12) { if ((paramString1 == null) || (paramString2 == null) || (paramString3 == null) || (paramString4 == null) || (paramString5 == null) || (paramString6 == null) || (paramString7 == null) || (paramString8 == null) || (paramString9 == null) || (paramString10 == null) || (paramString11 == null) || (paramString12 == null)) { Trace.println("parameters shouldn't be null", TraceLevel.UI); return -1; } PrivilegedAction local2 = new PrivilegedAction() { private final String val$title; private final String val$masthead; private final String val$message; private final String val$info; private final String val$blockBtnStr; private final String val$dontBlockBtnStr; private final String val$helpBtnStr; private final String val$closeBtnStr; private final String val$helpTitle; private final String val$helpMessage; private final String val$appLabelStr; private final String val$appTitle; public Object run() { int i = NativeMixedCodeDialog._show( this.val$title, this.val$masthead, this.val$message, this.val$info, this.val$blockBtnStr, this.val$dontBlockBtnStr, this.val$helpBtnStr, this.val$closeBtnStr, this.val$helpTitle, this.val$helpMessage, this.val$appLabelStr, this.val$appTitle); return new Integer(i); } }; try { return ((Integer) AccessController.doPrivileged(local2)).intValue(); } catch (Throwable localThrowable) { Trace.ignored(localThrowable); } return -1; }