* decryption, or verification
*/
public void testSigningEncryptionEmbedded() throws Exception {
SOAPEnvelope unsignedEnvelope = message.getSOAPEnvelope();
WSSecEncrypt encrypt = new WSSecEncrypt();
WSSecSignature sign = new WSSecSignature();
encrypt.setUserInfo("16c73ab6-b892-458f-abf5-2f875f74882e");
encrypt.setKeyIdentifierType(WSConstants.EMBEDDED_KEYNAME);
encrypt.setSymmetricEncAlgorithm(WSConstants.TRIPLE_DES);
encrypt.setKey(key);
sign.setUserInfo("16c73ab6-b892-458f-abf5-2f875f74882e", "security");
LOG.info("Before Encryption....");
Document doc = unsignedEnvelope.getAsDocument();
encrypt.setDocument(doc);
WSSecHeader secHeader = new WSSecHeader();
secHeader.insertSecurityHeader(doc);
Document signedDoc = sign.build(doc, crypto, secHeader);
Document encryptedSignedDoc = encrypt.build(signedDoc, crypto, secHeader);
if (LOG.isDebugEnabled()) {
LOG.debug("Encrypted message, RSA-OAEP keytransport, 3DES:");
String outputString =