santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mujahedsyed <>
Subject newbie - decryption stream using stax
Date Wed, 23 Jul 2014 10:22:57 GMT

I have followed sample test cases and observed that I am able to encrypt my
xml successfully but when I try to decrypt and use the decryptUsingStAX
method in EncryptionUtils it returns void unlike the encryptionUsingStax
that returned ByteArrayOutputStream.

So, for encryption I was easily able to write the encrypted file to the xml
file. But for decryption I am unable to figure out how I can proceed I have
been trying various things; like I changed the return type of
decryptionusingStax method to document and at the end of the method I had 

Document document = StAX2DOM.readDoc(
				XMLUtils.createDocumentBuilder(false), securityStreamReader);
		return document

But this is returning empty xml file. 

I have also followed advise to review this class
but unfortunately because I am using Stax I am unable to work around this.

The problem for me is that I am new both to Stax concepts and xml security
and really finding it difficult to return byteoutputarryastream for
decryptionusingstax method and would really appreciate if someone can throw
some light.

Thanks very much in advance,

View this message in context:
Sent from the Apache XML - Security - Dev mailing list archive at

View raw message