changeset 13403:20d991bc9171

8146197: SignatureAlgorithms.java after push of JDK-8146192 Reviewed-by: henryjen, jnimeh, mullan
author xuelei
date Mon, 28 Dec 2015 00:02:06 +0000
parents 3f00e1b74464
children 6fde8da39d20
files test/javax/net/ssl/TLSv12/SignatureAlgorithms.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/net/ssl/TLSv12/SignatureAlgorithms.java	Fri Dec 25 16:45:15 2015 +0300
+++ b/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);