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 replace sun.security packages??

user650622Jul 16 2013

We have an application that currently makes use of:

import sun.security.provider.X509Factory;
import sun.security.x509.AlgorithmId;
import sun.security.x509.X509CertInfo;
import sun.security.x509.X509CertImpl;
import sun.security.x509.CertificateAlgorithmId;
import sun.security.x509.CertificateValidity;
import sun.security.x509.CertificateSerialNumber;
import sun.security.x509.CertificateSubjectName;
import sun.security.x509.CertificateIssuerName;
import sun.security.x509.CertificateX509Key;
import sun.security.x509.CertificateVersion;

All of which produce a compile time messages containing: "... internal proprietary API and may be removed in a future release"

There is a java.security package, but the packages causing all the warnings, e.g. sun.security.x509, do not seem to have an equivalent in the java.security package. 

What should be used to replace the sun.security packages??  And, are there guidelines for the migration?

Thanks for your help.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 13 2013
Added on Jul 16 2013
0 comments
2,805 views