Hello,
Can anybody please, navigate me through the process? We're using various JCE
providers, such as SunJCE, IBMJCE. How do I specify particaluar provider and/or
cipher algorithm? Any changes I make to config.xml are ignored and, after
checking the source code I don't see how the following element can be processed
(ProviderAlgo). Browsing CVS I came across a file called provider.properties. Is
this a way to specify my provider? If so where should I put it, please?

<Algorithm URI="http://www.w3.org/2001/04/xmlenc#rsa-1_5";
   Description="Key Transport RSA-v1.5">
  <ProviderAlgo ProviderId="IBMJCE" JCEName="RSA"/>
</Algorithm>

Javadocs say that I can get an instance of an XML cipher via
XMLCipher.getInstance() and use it as a "generic" cipher for decryption. But
when I try to initialize it with my key (which carries algorithm information) I
am getting exception:

org.apache.xml.security.encryption.XMLEncryptionException: No message with ID
"XMLCipher instance without transformation specified" found in resource bundle
"org/apache/xml/security/resource/xmlsecurity"

Is it possible to re-use a cipher for different algorithms?

Thanks,
Alexey


Reply via email to