migration - What replaces Java's sun.security packages? -
this question has been asked on oracle forum as, "how replace sun.security packages??" (https://forums.oracle.com/thread/2560664), has not yet received response.
we have application 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 these produce compile time messages containing: "... internal proprietary api , may removed in future release"
there java , javax security packages, seem not contain equivalents sun.security.x509 & etc..
what should used replace sun.security packages?? and, there guidelines migration?
thanks help.
as of there no direct replacment packages oracle. if don't have plan run code in non sun/oracle jvm not issue. these warnings meant highlighting code portability issues other jvm implementations.
if want run code in other jvm should use equivalant libraries provided jvm.
i not sure meant regarding portability , afaik (haven't tested, read somewhere )sun.security available in jdk1.7 , not sure availability in upcoming releases.
Comments
Post a Comment