https://issues.apache.org/bugzilla/show_bug.cgi?id=47695
--- Comment #1 from coheigea <cohei...@apache.org> 2009-08-17 02:51:56 PDT --- I don't get it...how is this a bug in XML Security? To get a structure like EncryptedData KeyInfo EncryptedKey KeyInfo X509Data (with SP's key) you should be using two KeyInfo objects, something like this: KeyInfo keyInfo = new KeyInfo(document); X509Data x509dat = new X509Data(document); x509dat.addCertificate(cert); keyInfo.add(x509dat); encryptedKey.add(keyInfo); keyInfo = new KeyInfo(document); keyInfo.add(encryptedKey); encryptedDataElement.setKeyInfo(keyInfo); Colm. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.