I am trying using xml encryption syntax to encrypte an external file. For decryption, xml secruity provide the automatically resoruce solver to get the external encrypted file; but seems to me the encryption method doesn't automatcially follow the cipher reference to the external plain file, which is supposed to be encrypted. Is my understanding right? my solution is using general jce lib to encrypte the external plain file and using xml secruity to pack the key and meta data. But by the source code I found xml security decryption assume the firt block in the encrypted file is the IV of the algorithm, so to encrypte the external file, we first need to output the IV of the cipher in the encrypted file. it seems work for me. So I wonder to know whether it is the correction solution, or there is more convenient way to do this; A comment about this issue in the doucment would be nice.
wei