Replaces the certificate for a mobile workflow package.
void replaceMobileWorkflowCertificate(workflowID, baos.toByteArray(), "password");
If successful, returns silently. If unsuccessful, returns SUPAdminException.
InputStream is = workflowRL.getResourceAsStream("sybase101.p12");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] buf = new byte[512];
int count;
while ((count = is.read(buf)) != -1) {
baos.write(buf, 0, count);
}
is.close();
baos.flush();
baos.close();
MobileWorkflowIDVO workflowID = new MobileWorkflowIDVO();
workflowID.setWID(4);
workflowID.setVersion(1);
workflow.replaceMobileWorkflowCertificate(workflowID,
baos.toByteArray(), "password");