File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Bouncy castle Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Bouncy castle Issue" Watch "Bouncy castle Issue" New topic
Author

Bouncy castle Issue

kamal palia
Greenhorn

Joined: Jul 20, 2012
Posts: 17
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?
 
 
subject: Bouncy castle Issue
 
Similar Threads
BadPaddingException: pad block corruption when using Java 1.4
Bouncy Castle vs. Sun's JCE
Alternatives for sun.security.*
how to solve exception java.lang.SecurityException: JCE cannot authenticate the provider BC