8146197: SignatureAlgorithms.java after push of JDK-8146192
authorxuelei
Mon, 28 Dec 2015 00:02:06 +0000
changeset 34833 aca0e66389da
parent 34832 46acbee17a0c
child 34834 8baf154e0db4
8146197: SignatureAlgorithms.java after push of JDK-8146192 Reviewed-by: henryjen, jnimeh, mullan
jdk/test/javax/net/ssl/TLSv12/SignatureAlgorithms.java
--- a/jdk/test/javax/net/ssl/TLSv12/SignatureAlgorithms.java	Fri Dec 25 16:45:15 2015 +0300
+++ b/jdk/test/javax/net/ssl/TLSv12/SignatureAlgorithms.java	Mon Dec 28 00:02:06 2015 +0000
@@ -32,7 +32,6 @@
  * @test
  * @bug 8049321
  * @summary Support SHA256WithDSA in JSSE
- * @modules java.base/sun.misc
  * @run main/othervm SignatureAlgorithms PKIX "SHA-224,SHA-256"
  *                   TLS_DHE_DSS_WITH_AES_128_CBC_SHA
  * @run main/othervm SignatureAlgorithms PKIX "SHA-1,SHA-224"
@@ -59,8 +58,6 @@
 import java.security.cert.CertificateFactory;
 import java.security.spec.*;
 import java.security.interfaces.*;
-import sun.misc.BASE64Decoder;
-
 
 public class SignatureAlgorithms {
 
@@ -374,7 +371,7 @@
 
                 // generate the private key.
                 PKCS8EncodedKeySpec priKeySpec = new PKCS8EncodedKeySpec(
-                                new BASE64Decoder().decodeBuffer(keySpecStr));
+                                Base64.getMimeDecoder().decode(keySpecStr));
                 KeyFactory kf = KeyFactory.getInstance("DSA");
                 DSAPrivateKey priKey =
                         (DSAPrivateKey)kf.generatePrivate(priKeySpec);