Mercurial > hg > icedtea7-forest > jdk
changeset 9114:48dc8d3cd950
8173849: Fix use of java.util.Base64 in test cases
Summary: Use sun.misc.BASE64Decoder in DHEKeySizing test case
Reviewed-by: omajid
author | andrew |
---|---|
date | Thu, 02 Feb 2017 20:19:52 +0000 |
parents | c7ab4ccefe87 |
children | 4954b2c54bba |
files | test/sun/security/ssl/com/sun/net/ssl/internal/ssl/DHKeyExchange/DHEKeySizing.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/DHKeyExchange/DHEKeySizing.java Thu Feb 02 07:54:20 2017 +0000 +++ b/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/DHKeyExchange/DHEKeySizing.java Thu Feb 02 20:19:52 2017 +0000 @@ -107,7 +107,7 @@ import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.*; import java.security.interfaces.*; -import java.util.Base64; +import sun.misc.BASE64Decoder; public class DHEKeySizing { @@ -416,7 +416,7 @@ // generate the private key. String keySpecStr = targetPrivateKey; PKCS8EncodedKeySpec priKeySpec = new PKCS8EncodedKeySpec( - Base64.getMimeDecoder().decode(keySpecStr)); + new BASE64Decoder().decodeBuffer(keySpecStr)); KeyFactory kf = KeyFactory.getInstance("RSA"); RSAPrivateKey priKey = (RSAPrivateKey)kf.generatePrivate(priKeySpec);