// Clean up the previous run. These cannot be in hide() because show()
// might be called before hide() exits completly.
this.parameterPanel.getContentPanel().removeAll();
this.parameterTextFields.clear();
WorkflowClient workflowClient = this.engine.getWorkflowClient();
if (workflowClient.isSecure()) {
// Check if the proxy is loaded.
boolean loaded = this.myProxyChecker.loadIfNecessary();
if (!loaded) {
return;
}
// Creates a secure channel in gpel.
MyProxyClient myProxyClient = this.engine.getMyProxyClient();
GSSCredential proxy = myProxyClient.getProxy();
UserX509Credential credential = new UserX509Credential(proxy, XBayaSecurity.getTrustedCertificates());
try {
workflowClient.setUserX509Credential(credential);
} catch (WorkflowEngineException e) {
this.engine.getGUI().getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
return;
}
}