}
return new JAXBEncryptedData(edt,data,key,soapVersion);
}
public EncryptedData createEncryptedData(String id, Attachment attachment, String dataAlgo, KeyInfoType keyInfo, Key key, EncryptionTarget target) {
AttachmentData attachData = new AttachmentData(attachment);
String cid = "cid:" + attachment.getContentId();
boolean contentOnly = target.getContentOnly();
EncryptedDataType edt = new EncryptedDataType();
if(contentOnly){
edt.setType(MessageConstants.SWA11_ATTACHMENT_CONTENT_ONLY);