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!

About X509Certificate

843810Dec 11 2003 — edited Dec 11 2003
Hi, dear all...

I am a new beginner to JCE field.

I test a certificate program, but a confusing problem happens....

I use the form as follows:
X509Certificate c = X509Certificate.getInstance(new byte[10]);
But compiler tell me this is wrong?!

TestX.java:10: cannot resolve symbol
symbol : method getInstance (byte[])
location: class java.security.cert.X509Certificate
X509Certificate c = X509Certificate.getInstance(new byte[10]);

But I have searched the Docs, it has this method!

I am so cofused.@@

Please tell me what is wrong with this...
Thank you very much!

Ps:I have install j2sdk1.4.2
and I have import java.security.cert.X509Certificate;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2004
Added on Dec 11 2003
1 comment
124 views