aspose file tools*
The moose likes Web Services and the fly likes web service security, Invalid Key exception. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service security, Invalid Key exception. " Watch "web service security, Invalid Key exception. " New topic
Author

web service security, Invalid Key exception.

cnivas redy
Greenhorn

Joined: Apr 19, 2008
Posts: 17
we are getting java.security.InvalidKeyException: Illegal key size or default parameters exception while decrypting a data file.
we have IBM web sphere 6.1. and in the websphere Java/jre/lib/Security I have the two jars. local_policy.jar and US_export_policy.jar but Still I'm getting this exception.

Caused by:
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at com.edifecs.shared.filestore.ECCrypto.getDecryptionStream(ClientFileStore.java:539)

I tried the same web service on Tomcat web server in the begining I got the same error but after copying these SDK JCE jars to lib the exception is gone. I tried to download these from IBM web site but it is asking for IBM ID. does any body know how to get these JCE jars for IBM web sphere.? and why I'm getting this exception even after having the Jar in the jre/lib
thanks in advance
 
jQuery in Action, 2nd edition
 
subject: web service security, Invalid Key exception.