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!

Problem with Provider

881186Aug 9 2011 — edited Aug 9 2011
Hi iam a newbee to this Forum and have some problems with the JCA API.
I try to do somting linke this :

Signature sign = Signature.getInstance("SHA256WithRSA", "SUN");

the Compiler notfie some problem

Exception in thread "main" java.security.NoSuchAlgorithmException: no such algorithm: SHA256WithRSA for provider SUN
at sun.security.jca.GetInstance.getService(Unknown Source)
at sun.security.jca.GetInstance.getInstance(Unknown Source)
at java.security.Signature.getInstance(Unknown Source)
at pkcs_signer.coconet_package.TestClass.main(TestClass.java:76)

How i can solve this problem ? i use the SUN Provider.
I read in the internet i need to Download the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6, is this right ? and how i install this ?

thank you

Richard from Germany ( Java newbie )
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2011
Added on Aug 9 2011
7 comments
4,586 views