Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bouncy castle Issue

 
kamal palia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've installed the BouncyCastle cryptography provider on my system, placing bcprov-jdk16-145.jar in my application lib folder and added the line
security.provider.8=org.bouncycastle.jce.provider.BouncyCastleProvider
to java.security. I have verified that it's correctly installed by running a Standard Edition application which uses it.

However, when I try to run my Enterprise app in weblogic server, which uses BouncyCastle, I get the following error:
java.security.NoSuchProviderException: no such provider: BC
when my code attempts to execute the following line:
factory = KeyFactory.getInstance(algorithm, "BC");

Please suggest any soultion?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic