If you've recently downloaded my JWSDP 1.5 interoperability sample and tried to run the Java portion on J2SE 5.0 you may have experienced some "unable to decrypt message" errors.  To fix this, adjust your java.security file to read as follows:

 

security.provider.1=sun.security.provider.Sun

security.provider.2=sun.security.rsa.SunRsaSign

security.provider.3=com.sun.net.ssl.internal.ssl.Provider

security.provider.4=com.sun.crypto.provider.SunJCE

security.provider.5=org.bouncycastle.jce.provider.BouncyCastleProvider

security.provider.6=sun.security.jgss.SunProvider

security.provider.7=com.sun.security.sasl.Provider

 

It looks like there could be a potential conflict between Sun's RSA signing mechanism and the Bouncy Castle provider I used in the sample.  Adjusting the provider order as shown above fixes this.

 

Thanks to Rags from Sun for getting to the bottom of this one.