use of org.kse.gui.dialogs.DViewCertificate in project keystore-explorer by kaikramer.
the class DImportKeyPairOpenSsl method certificateDetailsPressed.
private void certificateDetailsPressed() {
try {
X509Certificate[] certs = loadCertificates();
if ((certs != null) && (certs.length != 0)) {
String path = new File(jtfCertificatePath.getText()).getName();
DViewCertificate dViewCertificate = new DViewCertificate(this, MessageFormat.format(res.getString("DImportKeyPairOpenSsl.ViewCertificateDetails.Title"), path), certs, null, DViewCertificate.NONE);
dViewCertificate.setLocationRelativeTo(this);
dViewCertificate.setVisible(true);
}
} catch (CryptoException ex) {
DError.displayError(this, ex);
}
}
use of org.kse.gui.dialogs.DViewCertificate in project keystore-explorer by kaikramer.
the class DImportKeyPairPvk method certificateDetailsPressed.
private void certificateDetailsPressed() {
try {
X509Certificate[] certs = loadCertificates();
if ((certs != null) && (certs.length != 0)) {
String path = new File(jtfCertificatePath.getText()).getName();
DViewCertificate dViewCertificate = new DViewCertificate(this, MessageFormat.format(res.getString("DImportKeyPairPvk.ViewCertificateDetails.Title"), path), certs, null, DViewCertificate.NONE);
dViewCertificate.setLocationRelativeTo(this);
dViewCertificate.setVisible(true);
}
} catch (CryptoException ex) {
DError.displayError(this, ex);
}
}
Aggregations