Are you looking for using the same provider that is passed to the first XMLCipher instance (through the getProviderInstance call) in the key decryption as well? If yes, then I think we make a change and pass the same provider name to the EncryptedKeyResolver.

Vishal

Samuel Misecka wrote:

Hi,

I need to specify provider for XML decryption. I have problem because XMLCipher object has method getProviderInstance(...), but in method decryptToByteArray
(Element element) is created and registered EncryptedKeyResolver without provider name. Then EncryptedKeyResolver.engineCanResolve method calls XMLCipher.getInstance() not XMLCipher.getProviderInstance(...) because provider name is not available.


        Sam.







Reply via email to