From 512ee28022fac62414a4b1b20338359eefb08daa Mon Sep 17 00:00:00 2001 From: mharmsen Date: Thu, 13 Jan 2011 21:30:52 +0000 Subject: Bugzilla Bug #642741 - CS build uses deprecated functions - removed references to "sun.misc.BASE64Encoder" - removed references to "sun.misc.BASE64Decoder" git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1731 c9f7a03b-bd48-0410-a16d-cbbf54688b0b --- pki/base/silent/src/http/HTTPClient.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'pki/base/silent/src/http/HTTPClient.java') diff --git a/pki/base/silent/src/http/HTTPClient.java b/pki/base/silent/src/http/HTTPClient.java index 840999080..5633cb448 100644 --- a/pki/base/silent/src/http/HTTPClient.java +++ b/pki/base/silent/src/http/HTTPClient.java @@ -22,8 +22,9 @@ import java.nio.*; import java.util.*; import java.net.URLEncoder; -import sun.misc.BASE64Encoder; -import sun.misc.BASE64Decoder; +//import sun.misc.BASE64Encoder; +//import sun.misc.BASE64Decoder; +import com.netscape.osutil.OSUtil; import org.mozilla.jss.*; @@ -1322,10 +1323,12 @@ public class HTTPClient implements SSLCertificateApprovalCallback // set basic auth if needed if(auth_type != null && auth_type.equalsIgnoreCase("BASIC")) { - BASE64Encoder encoder = new BASE64Encoder(); + // BASE64Encoder encoder = new BASE64Encoder(); - String temp = encoder.encodeBuffer((user_id + - ":" + user_password).getBytes()); + // String temp = encoder.encodeBuffer((user_id + + // ":" + user_password).getBytes()); + String temp = OSUtil.BtoA((user_id + + ":" + user_password).getBytes()); // note: temp already contains \r and \n. // remove \r and \n from the base64 encoded string. -- cgit