I've been struggling for a week or two to get anything in the javax.crypto package to work for me.
Environment:
J2SE 1.4.2, IBM Rational Application Developer 6.0, IBM WebSphere App Server 6.0.2.15 (although that last one's not really relevant for this example problem)
Any program I make that utilizes
Java Cryptography gives the following exception:
Most recommendations I've come across for solving this involved reordering the crytographic service providers in java.security, so here is my current arrangement:
security.provider.1=com.ibm.crypto.provider.IBMJCE
security.provider.2=com.ibm.jsse.IBMJSSEProvider
security.provider.3=com.ibm.jsse2.IBMJSSEProvider2
security.provider.4=com.ibm.security.jgss.IBMJGSSProvider
security.provider.5=com.ibm.security.cert.IBMCertPath
Finally, here's an example program that causes the exception:
The exception's the same with the Security.addProvider line uncommented.
Any ideas or guidance would be greatly appreciated. Thanks for your time.
[ July 29, 2008: Message edited by: Jon Evans ]