summaryrefslogtreecommitdiffstats
path: root/pki/base/silent/src/common/Utilities.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/common/Utilities.java
parent91b9a5774f3e537de1ab0a176f52ba1fd2b91350 (diff)
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/common/Utilities.java')
-rw-r--r--pki/base/silent/src/common/Utilities.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/pki/base/silent/src/common/Utilities.java b/pki/base/silent/src/common/Utilities.java
index 648fbb34d..444d9b6bf 100644
--- a/pki/base/silent/src/common/Utilities.java
+++ b/pki/base/silent/src/common/Utilities.java
@@ -26,6 +26,7 @@ import sun.misc.*;
import netscape.security.x509.*;
import netscape.security.util.*;
+import com.netscape.osutil.OSUtil;
public class Utilities {
private static final String keyValueSeparators = "=: \t\r\n\f";
@@ -303,8 +304,9 @@ public class Utilities {
temp = temp.replaceAll("\\n", "");
try {
- BASE64Decoder base64 = new BASE64Decoder();
- byte decodedBASE64Cert[] = base64.decodeBuffer(temp);
+ // BASE64Decoder base64 = new BASE64Decoder();
+ // byte decodedBASE64Cert[] = base64.decodeBuffer(temp);
+ byte decodedBASE64Cert[] = OSUtil.AtoB(temp);
X509CertImpl x509_cert = new X509CertImpl(decodedBASE64Cert);
X509CertInfo certinfo = (X509CertInfo) x509_cert.get("x509.INFO");