Index: src/com/bbn/pb/sec/SecurityComponent.java
===================================================================
--- src/com/bbn/pb/sec/SecurityComponent.java	(revision 40)
+++ src/com/bbn/pb/sec/SecurityComponent.java	(working copy)
@@ -58,8 +58,9 @@
 import org.apache.log4j.PropertyConfigurator;
 
 import org.bouncycastle.jce.provider.JDKX509CertificateFactory;
-import sun.misc.BASE64Decoder;
-import sun.misc.BASE64Encoder;
+//import sun.misc.BASE64Decoder;
+//import sun.misc.BASE64Encoder;
+import org.apache.commons.codec.binary.Base64;
 import java.util.Hashtable;
 import java.util.Arrays;
 
@@ -425,7 +426,8 @@
      */
     static String base64EncodeWithoutLF(byte [] signature) {
         String result = "";
-        BASE64Encoder encoder = new BASE64Encoder ();
+        Base64 encoder = new Base64();
+        //BASE64Encoder encoder = new BASE64Encoder ();
         result += encoder.encode (signature);
         result = removeLF(result);
         return result;
@@ -450,13 +452,15 @@
      */
     public static byte[] stringToSignature (String signature) {
         byte[] result = null;
-        BASE64Decoder decoder = new BASE64Decoder ();
-        try {
-            result = decoder.decodeBuffer (signature);
-        }
-        catch (java.io.IOException e) {
-            log.error ("Error decoding " + signature, e);
-        }
+        Base64 decoder = new Base64();
+        //BASE64Decoder decoder = new BASE64Decoder ();
+        //try {
+            //result = decoder.decodeBuffer (signature);
+        	result = decoder.decode (signature.getBytes());
+        //}
+        //catch (java.io.IOException e) {
+          //  log.error ("Error decoding " + signature, e);
+        //}
         return result;
     }
 
@@ -468,9 +472,10 @@
      * @return string object with content of byte array.
      */
     public static String base64Encode (byte[] input) {
-        BASE64Encoder encoder = new BASE64Encoder ();
-        String result = encoder.encode (input);
-        return result;
+        Base64 encoder = new Base64();
+    	//BASE64Encoder encoder = new BASE64Encoder ();
+        byte[] result = encoder.encode (input);
+        return result.toString();
     }
 
     /**
