public EnvelopedOutput getEncryptedSigned()
{
Customer cust = new Customer();
cust.setName("Bill");
SignedOutput signed = new SignedOutput(cust, MediaType.APPLICATION_XML_TYPE);
signed.setCertificate(certificate);
signed.setPrivateKey(privateKey);
EnvelopedOutput output = new EnvelopedOutput(signed, "multipart/signed");
output.setCertificate(certificate);
return output;
}