diff options
Diffstat (limited to 'pki/base/silent/src/http/HTTPClient.java')
-rw-r--r-- | pki/base/silent/src/http/HTTPClient.java | 13 |
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. |