org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedSignedDoc);
LOG.debug(outputString);
}
LOG.info("After Encryption....");
SecretKeyCallbackHandler secretKeyCallbackHandler = new SecretKeyCallbackHandler();
secretKeyCallbackHandler.setOutboundSecret(key);
WSSecurityEngine engine = new WSSecurityEngine();
WSSConfig config = WSSConfig.getNewInstance();
config.setWsiBSPCompliant(false);
engine.setWssConfig(config);
engine.processSecurityHeader(doc, null, secretKeyCallbackHandler, crypto);