| | |
| | | { |
| | | BackgroundTask worker = new BackgroundTask() |
| | | { |
| | | public Object processBackgroundTask() throws NamingException |
| | | public Object processBackgroundTask() throws NamingException, |
| | | ConfigException |
| | | { |
| | | Boolean isServerRunning = Boolean.TRUE; |
| | | InitialLdapContext ctx = null; |
| | |
| | | throw ne; |
| | | } |
| | | isServerRunning = Boolean.FALSE; |
| | | } catch (Error e) |
| | | } catch (ConfigException e) |
| | | { |
| | | throw e; |
| | | } catch (IllegalStateException ise) |
| | |
| | | { |
| | | LOG.log(Level.INFO, "Accepting certificate presented by host "+host); |
| | | getTrustManager().acceptCertificate(chain, authType, host); |
| | | /* Simulate a click on the OK */ |
| | | /* Simulate a click on the OK by calling in the okClicked method. */ |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | | public void run() |
| | | { |
| | | okButton.doClick(); |
| | | okClicked(); |
| | | } |
| | | }); |
| | | } |