use of org.kse.gui.dialogs.DViewPrivateKey in project keystore-explorer by kaikramer.
the class DImportKeyPairPvk method privateKeyDetailsPressed.
private void privateKeyDetailsPressed() {
try {
String path = new File(jtfPrivateKeyPath.getText()).getName();
PrivateKey privateKey = loadPrivateKey();
if (privateKey != null) {
DViewPrivateKey dViewPrivateKey = new DViewPrivateKey(this, MessageFormat.format(res.getString("DImportKeyPairPvk.ViewPrivateKeyDetails.Title"), path), privateKey, new BouncyCastleProvider());
dViewPrivateKey.setLocationRelativeTo(this);
dViewPrivateKey.setVisible(true);
}
} catch (CryptoException ex) {
DError.displayError(this, ex);
}
}
Aggregations