src/share/classes/sun/security/provider/X509Factory.java

Print this page

        

*** 33,43 **** import sun.security.pkcs.PKCS7; import sun.security.provider.certpath.X509CertPath; import sun.security.provider.certpath.X509CertificatePair; import sun.security.util.DerValue; import sun.security.util.Cache; ! import sun.misc.BASE64Decoder; import sun.security.pkcs.ParsingException; /** * This class defines a certificate factory for X.509 v3 certificates & * certification paths, and X.509 v2 certificate revocation lists (CRLs). --- 33,43 ---- import sun.security.pkcs.PKCS7; import sun.security.provider.certpath.X509CertPath; import sun.security.provider.certpath.X509CertificatePair; import sun.security.util.DerValue; import sun.security.util.Cache; ! import java.util.Base64; import sun.security.pkcs.ParsingException; /** * This class defines a certificate factory for X.509 v3 certificates & * certification paths, and X.509 v2 certificate revocation lists (CRLs).
*** 573,584 **** if (next != '\r') footer.append((char)next); } checkHeaderFooter(header.toString(), footer.toString()); ! BASE64Decoder decoder = new BASE64Decoder(); ! return decoder.decodeBuffer(new String(data, 0, pos)); } } private static void checkHeaderFooter(String header, String footer) throws IOException { --- 573,583 ---- if (next != '\r') footer.append((char)next); } checkHeaderFooter(header.toString(), footer.toString()); ! return Base64.getMimeDecoder().decode(new String(data, 0, pos)); } } private static void checkHeaderFooter(String header, String footer) throws IOException {