~ubuntu-branches/ubuntu/natty/icedtea-web/natty-security

« back to all changes in this revision

Viewing changes to netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-02-24 12:57:25 UTC
  • mto: (18.1.1 experimental) (19.1.1 natty-security)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20110224125725-8zq5v35r6o27w8ku
Tags: upstream-1.1~20110320
ImportĀ upstreamĀ versionĀ 1.1~20110320

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
import net.sourceforge.jnlp.security.CertificateUtils;
76
76
import net.sourceforge.jnlp.security.KeyStores;
77
77
import net.sourceforge.jnlp.security.SecurityUtil;
78
 
import net.sourceforge.jnlp.security.SecurityWarningDialog;
 
78
import net.sourceforge.jnlp.security.SecurityDialog;
79
79
import net.sourceforge.jnlp.security.KeyStores.Level;
80
80
import net.sourceforge.jnlp.util.FileUtils;
81
81
 
299
299
    }
300
300
 
301
301
    /** Allows storing KeyStores.Types in a JComponent */
302
 
    private class CertificateType {
 
302
    private static class CertificateType {
303
303
        private final KeyStores.Type type;
304
304
 
305
305
        public CertificateType(KeyStores.Type type) {
369
369
                    }
370
370
 
371
371
                    OutputStream os = new FileOutputStream(keyStoreFile);
372
 
                    ks.store(os, KeyStores.getPassword());
 
372
                    try {
 
373
                        ks.store(os, KeyStores.getPassword());
 
374
                    } finally {
 
375
                        os.close();
 
376
                    }
373
377
                    repopulateTables();
374
378
                } catch (Exception ex) {
375
379
                    // TODO: handle exception
478
482
            int selectedRow = table.getSelectedRow();
479
483
            if (selectedRow != -1 && selectedRow >= 0) {
480
484
                X509Certificate c = certs.get(selectedRow);
481
 
                SecurityWarningDialog.showSingleCertInfoDialog(c, parent);
 
485
                SecurityDialog.showSingleCertInfoDialog(c, parent);
482
486
            }
483
487
        }
484
488
    }