Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to solve exception java.lang.SecurityException: JCE cannot authenticate

843811Feb 24 2009 — edited Apr 15 2009
Hello All,

I have developed an application in which I have used the Cryptography with the help of BountyCastle.jar.

I also had a line Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());

Everything works fine when I execute the program from Eclipse.

But when I made executable jar for my application which internally has BouncyCastle jar and execute the jar,

I am getting exception

JCE cannot authenticate the provider BC
java.lang.SecurityException: JCE cannot authenticate the provider BC
at javax.crypto.Cipher.getInstance(DashoA13*..)

Can anybody please guide me how can I solve this problem?

Thanks in Advance,
Jenish
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2009
Added on Feb 24 2009
6 comments
1,775 views