summaryrefslogtreecommitdiffstats
path: root/pki/base/silent/src/http/HTTPClient.java
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-01-13 21:30:52 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-01-13 21:30:52 +0000
commit512ee28022fac62414a4b1b20338359eefb08daa (patch)
tree6da1a90293eaefe65392109007d1d96895fb77cb /pki/base/silent/src/http/HTTPClient.java
parent91b9a5774f3e537de1ab0a176f52ba1fd2b91350 (diff)
downloadpki-512ee28022fac62414a4b1b20338359eefb08daa.tar.gz
pki-512ee28022fac62414a4b1b20338359eefb08daa.tar.xz
pki-512ee28022fac62414a4b1b20338359eefb08daa.zip
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
Diffstat (limited to 'pki/base/silent/src/http/HTTPClient.java')
-rw-r--r--pki/base/silent/src/http/HTTPClient.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/pki/base/silent/src/http/HTTPClient.java b/pki/base/silent/src/http/HTTPClient.java
index 84099908..5633cb44 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.