private void reconstructFrameContent() { try { frameMainPanel.removeAll(); JComponent content = getFrameContent(); frameMainPanel.add(content, BorderLayout.CENTER); } catch (KeyStoreException e) { workbench.getErrorReporter().reportError(e); frameMainPanel.add(new JLabel(e.getLocalizedMessage()), BorderLayout.CENTER); } frameMainPanel.revalidate(); }
@Override public void onClick(DialogInterface dialog, int which) { try { String alias = aliases.get(which); mtm.deleteCertificate(alias); setText("Deleted " + alias, false); } catch (KeyStoreException e) { e.printStackTrace(); setText("Error: " + e.getLocalizedMessage(), false); } } })
private void saveCertificateAuthorityAccountKey(ModifiableKeyStoreService keyStoreService, char[] keyPassword) throws OperationFailedException { KeyStore modifiableAccountkeyStore = keyStoreService.getModifiableValue(); try { modifiableAccountkeyStore.setKeyEntry(alias, acmeAccount.getPrivateKey(), keyPassword, new X509Certificate[]{ acmeAccount.getCertificate() }); } catch (KeyStoreException e) { throw ROOT_LOGGER.unableToUpdateCertificateAuthorityAccountKeyStore(e, e.getLocalizedMessage()); } ((KeyStoreService) keyStoreService).save(); } }
serverKeys = KeyStore.getInstance(commonServices.tlsSecurityType); } catch (KeyStoreException e1) { log.error(e1.getLocalizedMessage(), e1); log.error(e1.getLocalizedMessage(), e1); } catch (KeyStoreException e1) { log.error(e1.getLocalizedMessage(), e1); } catch (NoSuchAlgorithmException e1) { log.error(e1.getLocalizedMessage(), e1); clientPub = KeyStore.getInstance(commonServices.tlsSecurityType); } catch (KeyStoreException e1) { log.error(e1.getLocalizedMessage(), e1); trustManager.init(clientPub); } catch (KeyStoreException e1) { log.error(e1.getLocalizedMessage(), e1);