Re: decrypting

2009-08-11 Thread Sean Mullan
You must enable the DocumentBuilderFactory to be namespace aware before parsing the document, add this line: factory.setNamespaceAware(true); --Sean Björn-Peter Tietjens wrote: Hi, I am encrypting xml using the sample code. But I have a problem decrypting it. I have a String representation

decrypting

2009-08-11 Thread Björn-Peter Tietjens
Hi, I am encrypting xml using the sample code. But I have a problem decrypting it. I have a String representation of the encrypted xml: see below I want to get a org.w3c.dom.Document representation by parsing that String and then decrypt the Document as in the sample code: public Document get

Re: encryption example

2009-08-11 Thread Björn-Peter Tietjens
Hi sry got confused with the key... now it works... Cheers BT Björn-Peter Tietjens schrieb: Hi, i keep getting the exception: 13:34:52,400 ERROR Encrypter:178 - org.apache.xml.security.encryption.XMLEncryptionException: Invalid key length: 16 bytes(Invalid key length: 16 bytes) i use