From fa170fc99c76f6f3e8dc523177c9303e4fbb792d Mon Sep 17 00:00:00 2001
From: Adam Young <ayoung@redhat.com>
Date: Thu, 10 Nov 2011 21:41:08 -0500
Subject: [PATCH 15/17] Removal of unused private methods

These methods are uncallable.

There might be some discussion about the private default constructores.  The Rules of Java are different from C++:  If there is any constructor defined, all the other defaults befome uncallable.  Thus,  the private default constructors are not needed.

https://bugzilla.redhat.com/show_bug.cgi?id=728303
---
 .../ca/src/com/netscape/ca/CRLIssuingPoint.java    |    6 -
 .../cms/evaluators/UserOrigReqAccessEvaluator.java |    6 -
 .../netscape/cms/jobs/RenewalNotificationJob.java  |   21 -
 .../cms/listeners/CertificateRevokedListener.java  |   77 ---
 .../extensions/SubjectDirectoryAttributesExt.java  |   13 -
 .../netscape/cms/servlet/admin/CAAdminServlet.java |   68 --
 .../cms/servlet/admin/CMSAdminServlet.java         |  222 -------
 .../cms/servlet/admin/KRAAdminServlet.java         |  663 --------------------
 .../cms/servlet/admin/LogAdminServlet.java         |   98 ---
 .../cms/servlet/admin/OCSPAdminServlet.java        |   20 +-
 .../cms/servlet/admin/ProfileAdminServlet.java     |   15 -
 .../cms/servlet/admin/UsrGrpAdminServlet.java      |   29 -
 .../cms/servlet/cert/CMCRevReqServlet.java         |   88 ---
 .../netscape/cms/servlet/cert/CloneRedirect.java   |   15 -
 .../netscape/cms/servlet/cert/EnrollServlet.java   |   67 --
 .../com/netscape/cms/servlet/cert/GetCAChain.java  |    9 -
 .../com/netscape/cms/servlet/cert/ListCerts.java   |   82 ---
 .../cms/servlet/cert/scep/CRSEnrollment.java       |   15 +-
 .../netscape/cms/servlet/common/CMSTemplate.java   |   10 -
 .../cms/servlet/csadmin/DatabasePanel.java         |   17 -
 .../cms/servlet/csadmin/GetSubsystemCert.java      |   18 -
 .../com/netscape/cms/servlet/request/QueryReq.java |    9 -
 .../com/netscape/cms/servlet/tks/TokenServlet.java |   25 -
 .../src/com/netscape/cmscore/apps/CMSEngine.java   |   16 -
 .../ChallengePhraseAuthentication.java             |   10 -
 .../netscape/cmscore/base/SimpleProperties.java    |  134 ----
 .../com/netscape/cmscore/dbs/PublicKeyMapper.java  |   16 -
 .../com/netscape/cmscore/extensions/KeyUsage.java  |    4 -
 .../cmscore/policy/GenericPolicyProcessor.java     |   13 -
 .../src/com/netscape/cmscore/util/OsSubsystem.java |   55 --
 .../src/com/netscape/cmstools/PasswordCache.java   |   18 -
 .../src/com/netscape/kra/EnrollmentService.java    |   37 --
 pki/base/silent/src/argparser/StringScanner.java   |    8 -
 pki/base/silent/src/ca/UserEnroll.java             |    4 -
 pki/base/silent/src/ca/checkRequest.java           |   16 +-
 pki/base/silent/src/common/AutoInstaller.java      |  209 ------
 pki/base/silent/src/common/CMSConfig.java          |   59 --
 pki/base/silent/src/common/CMSLDAP.java            |   11 -
 pki/base/silent/src/common/ServerInfo.java         |   14 -
 pki/base/silent/src/common/TestClient.java         |   16 -
 .../util/src/com/netscape/cmsutil/ocsp/CertID.java |    1 -
 .../src/com/netscape/cmsutil/ocsp/OCSPRequest.java |    6 +-
 .../com/netscape/cmsutil/ocsp/OCSPResponse.java    |    5 -
 .../netscape/cmsutil/ocsp/OCSPResponseStatus.java  |    5 -
 .../src/com/netscape/cmsutil/ocsp/Request.java     |    5 -
 .../com/netscape/cmsutil/ocsp/ResponseBytes.java   |    5 -
 .../src/com/netscape/cmsutil/ocsp/Signature.java   |    5 -
 .../src/com/netscape/cmsutil/ocsp/TBSRequest.java  |    2 -
 .../security/extensions/OCSPNoCheckExtension.java  |    7 -
 .../util/src/netscape/security/pkcs/PKCS8Key.java  |   12 -
 .../util/src/netscape/security/provider/DSA.java   |   34 -
 .../util/src/netscape/security/provider/MD5.java   |    9 +-
 .../util/src/netscape/security/provider/SHA.java   |   14 -
 .../util/src/netscape/security/util/DerValue.java  |   18 -
 .../security/x509/CRLDistributionPoint.java        |    6 -
 .../x509/CRLDistributionPointsExtension.java       |    3 -
 .../x509/IssuingDistributionPointExtension.java    |    4 -
 .../util/src/netscape/security/x509/OIDMap.java    |   12 -
 .../src/netscape/security/x509/X509CRLImpl.java    |    6 -
 59 files changed, 5 insertions(+), 2387 deletions(-)

diff --git a/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java b/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
index f02d0905bd7030c7a15bc9fbc395172e687f5c4d..ada787bee0eab0b58e43d61d2f6954e2a13168ce 100644
--- a/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
+++ b/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
@@ -531,12 +531,6 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable {
         return identical;
     }
 
-    private int getTimeListDays(Vector listedDays) {
-        int days = (listedDays != null)? listedDays.size(): 0;
-        CMS.debug("getTimeListDays: "+days);
-        return days;
-    }
-
     private int getTimeListSize(Vector listedDays) {
         int listSize = 0;
         for (int i = 0; listedDays != null && i < listedDays.size(); i++) {
diff --git a/pki/base/common/src/com/netscape/cms/evaluators/UserOrigReqAccessEvaluator.java b/pki/base/common/src/com/netscape/cms/evaluators/UserOrigReqAccessEvaluator.java
index 88358aa5883800f2d07bdb0087fb83e05a34822c..b1b406c095356d3c9a474557442b6777db5441d5 100644
--- a/pki/base/common/src/com/netscape/cms/evaluators/UserOrigReqAccessEvaluator.java
+++ b/pki/base/common/src/com/netscape/cms/evaluators/UserOrigReqAccessEvaluator.java
@@ -159,11 +159,5 @@ public class UserOrigReqAccessEvaluator implements IAccessEvaluator {
 
         return false;
     }
-    private void log(int level, String msg) {
-        if (mLogger == null)
-            return;
-        mLogger.log(ILogger.EV_SYSTEM, null, ILogger.S_ACLS,
-            level, "UserOrigReqAccessEvaluator: " + msg);
-    }
 
 }
diff --git a/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java b/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java
index 59116bd911407905fb14e9eb417a35ef9d4c227f..0445ea4b73b45840aeadf5ceb45c58dcf27d5f0f 100644
--- a/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java
+++ b/pki/base/common/src/com/netscape/cms/jobs/RenewalNotificationJob.java
@@ -487,27 +487,6 @@ public class RenewalNotificationJob
         }
     }
 
-    private String makeLDAPDateString(Date d) {
-		
-        String ldfYear = "" + Integer.toString(d.getYear());
-		
-        String ldfMonth = getPadded(d.getMonth());
-        String ldfDate = getPadded(d.getDate());
-        String ldfHours = getPadded(d.getHours());
-        String ldfMinutes = getPadded(d.getMinutes());
-        String ldfSeconds = getPadded(d.getSeconds());
-		
-        return ldfYear + ldfMonth + ldfDate + ldfHours + ldfMinutes + ldfSeconds + "Z";
-    }
-	
-    private String getPadded(int i) {
-        if (i < 10) {
-            return "0" + Integer.toString(i);
-        } else {
-            return  "" + Integer.toString(i);
-        }
-    }
-    
     /**
      * get instance id.
      * @return a String identifier
diff --git a/pki/base/common/src/com/netscape/cms/listeners/CertificateRevokedListener.java b/pki/base/common/src/com/netscape/cms/listeners/CertificateRevokedListener.java
index d1cc3d808a662bd5ee18c4f6478be054c01efc3d..ca62af5f37504fe005349be793336ca1c707a9c0 100644
--- a/pki/base/common/src/com/netscape/cms/listeners/CertificateRevokedListener.java
+++ b/pki/base/common/src/com/netscape/cms/listeners/CertificateRevokedListener.java
@@ -300,83 +300,6 @@ public class CertificateRevokedListener implements IRequestListener {
         }
     }
 
-    private void revoked(IRequest r) {
-        // do we have an email to send?
-        String mEmail = null;
-        IEmailResolverKeys keys = CMS.getEmailResolverKeys();
-
-        try {
-            keys.set(IEmailResolverKeys.KEY_REQUEST, r);
-        } catch (EBaseException e) {
-            log(ILogger.LL_FAILURE,
-                CMS.getLogMessage("LISTENERS_CERT_ISSUED_SET_RESOLVER", e.toString()));
-        }
-
-        IEmailResolver er = CMS.getReqCertSANameEmailResolver();
-
-        try {
-            mEmail = er.getEmail(keys);
-        } catch (ENotificationException e) {
-            log(ILogger.LL_FAILURE, CMS.getLogMessage("OPERATION_ERROR", e.toString()));
-        } catch (EBaseException e) {
-            log(ILogger.LL_FAILURE, CMS.getLogMessage("OPERATION_ERROR", e.toString()));
-        } catch (Exception e) {
-            log(ILogger.LL_FAILURE, CMS.getLogMessage("OPERATION_ERROR", e.toString()));
-        }
-
-        // now we can mail
-        if ((mEmail != null) && !mEmail.equals("")) {
-            IMailNotification mn = CMS.getMailNotification();
-
-            mn.setFrom(mSenderEmail);
-            mn.setTo(mEmail);
-            mn.setSubject(mSubject);
-
-            /*
-             * get rejection file from disk
-             */
-            IEmailTemplate template = CMS.getEmailTemplate(mRejectPath);
-
-            if (template != null) {
-                if (!template.init()) {
-                    return;
-                }
-			
-                if (template.isHTML()) {
-                    mn.setContentType("text/html");
-                }
-
-                // build some token data
-                mContentParams.put(IEmailFormProcessor.TOKEN_ID,
-                    mConfig.getName());
-                mReqId = r.getRequestId();
-                mContentParams.put(IEmailFormProcessor.TOKEN_REQUEST_ID,
-                    (Object) mReqId.toString());
-                IEmailFormProcessor et = CMS.getEmailFormProcessor();
-                String c = et.getEmailContent(template.toString(), mContentParams);
-
-                mn.setContent(c);
-            } else {
-                log(ILogger.LL_FAILURE, CMS.getLogMessage("LISTENERS_CERT_ISSUED_REJECTION"));
-                mn.setContent("Your Certificate Request has been revoked.  Please contact your administrator for assistance");
-            }
-
-            try {
-                mn.sendNotification();
-            } catch (ENotificationException e) {
-                // already logged, lets audit
-                log(ILogger.LL_FAILURE, CMS.getLogMessage("OPERATION_ERROR", e.toString()));
-				
-            } catch (IOException e) {
-                log(ILogger.LL_FAILURE, CMS.getLogMessage("OPERATION_ERROR", e.toString()));
-            }
-        } else {
-            log(ILogger.LL_FAILURE,
-                CMS.getLogMessage("LISTENERS_CERT_ISSUED_REJECTION_NOTIFICATION", mReqId.toString()));
-
-        }
-    }
-
     private void buildContentParams(RevokedCertImpl crlentries[], String mEmail) {
         mContentParams.put(IEmailFormProcessor.TOKEN_ID,
             mConfig.getName());
diff --git a/pki/base/common/src/com/netscape/cms/policy/extensions/SubjectDirectoryAttributesExt.java b/pki/base/common/src/com/netscape/cms/policy/extensions/SubjectDirectoryAttributesExt.java
index f3ef687df9addcb00048af4396b777ab0578c408..be858c9f0965c4a7a8928985634d35e286009979 100644
--- a/pki/base/common/src/com/netscape/cms/policy/extensions/SubjectDirectoryAttributesExt.java
+++ b/pki/base/common/src/com/netscape/cms/policy/extensions/SubjectDirectoryAttributesExt.java
@@ -22,7 +22,6 @@ import java.io.IOException;
 import java.security.cert.CertificateException;
 import java.util.Enumeration;
 import java.util.Locale;
-import java.util.StringTokenizer;
 import java.util.Vector;
 
 import netscape.security.util.DerValue;
@@ -192,18 +191,6 @@ public class SubjectDirectoryAttributesExt extends APolicyRule
         } 
     }
 
-    private Vector formValues(String val) {
-        StringTokenizer tokenizer = new StringTokenizer(val, "+");
-        Vector v = new Vector();
-
-        while (tokenizer.hasMoreElements()) {
-            String s = (String) tokenizer.nextElement();   
-
-            v.addElement(s);
-        }
-        return v;
-    }
-
     public Vector getInstanceParams() {
         return mParams; // inited in init()
     }
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/CAAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/CAAdminServlet.java
index 9b6f50b4f7353c53354d493249b0d79bca5546c4..d70d9e7914f180592af48d9e94e27bdb2815b1e4 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/CAAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/CAAdminServlet.java
@@ -1564,74 +1564,6 @@ public class CAAdminServlet extends AdminServlet {
             sendResponse(SUCCESS, null, null, resp);
     }
 
-    /**
-     * Retrieves configuration parameters of certificate
-     * authority.
-     */
-    private synchronized void getConfig(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        // validate
-        super.getConfig(mCA.getConfigStore(), req, resp);
-    }
-
-    /**
-     * Sets configuration parameters of certificate
-     * authority.
-     */
-    private synchronized void setConfig(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        super.setConfig(mCA.getConfigStore(), req, resp);
-        // XXX - commit changes
-    }
-
-    /**
-     * Lists configuration store parameters.
-     */
-    private synchronized void listConfig(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        super.listConfig(mCA.getConfigStore(), req, resp);
-    }
-
-    /**
-     * Locks a request so that no one can modify it except
-     * owner.
-     */
-    private synchronized void lockRequest(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        NameValuePairs params = new NameValuePairs();
-
-        // XXX
-        sendResponse(SUCCESS, null, params, resp);
-    }
-
-    /**
-     * Locks certificate record so that no one can
-     * modify it except owner.
-     */
-    private synchronized void lockCertRecord(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        NameValuePairs params = new NameValuePairs();
-
-        sendResponse(SUCCESS, null, params, resp);
-    }
-
-    /**
-     * Modifies a cert record.
-     */
-    private synchronized void modifyCertRecord(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        NameValuePairs params = new NameValuePairs();
-
-        // XXX
-        sendResponse(SUCCESS, null, params, resp);
-    }
-
     private void log(int level, String msg) {
         if (mLogger == null)
             return;
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java
index 1f2835bc2a97bfcc45ec887b3e49dff60852a9d7..16268f92288e2770d8eef7bf69cd54d906a18469 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java
@@ -28,7 +28,6 @@ import java.io.PrintStream;
 import java.io.PrintWriter;
 import java.io.StringWriter;
 import java.math.BigInteger;
-import java.net.ServerSocket;
 import java.security.KeyPair;
 import java.util.Date;
 import java.util.Enumeration;
@@ -853,196 +852,6 @@ public final class CMSAdminServlet extends AdminServlet {
     }
 
     /**
-     * Modifies network information.
-     */
-    private void modifyNetworkConfig(HttpServletRequest req,
-        HttpServletResponse resp) throws ServletException,
-            IOException, EBaseException {
-
-        /*
-         HTTPSubsystem eeGateway = (HTTPSubsystem)
-         SubsystemRegistry.getInstance().get("eeGateway");
-         RemoteAdmin raAdmin = (RemoteAdmin)RemoteAdmin.getInstance();
-         AgentGateway agent = (AgentGateway)mReg.get(AgentGateway.ID);
-
-         Enumeration enum1 = req.getParameterNames();
-
-         String eeHTTPportString = null;
-         String eeHTTPSportString = null;
-         String agentHTTPSportString = null;
-         String radminHTTPSportString = null;
-
-         String gatewayBacklog = "15";
-
-         // eeHTTPEnabled corresponds to the checkbox which enables the
-        // HTTP EE port
-        String eeHTTPEnabled = Constants.FALSE;
-
-        while (enum1.hasMoreElements()) {
-        String key = (String)enum1.nextElement();
-        String value = (String)req.getParameter(key);
-
-        if (key.equals(Constants.PR_AGENT_S_BACKLOG)) {
-        agent.setHTTPSBacklog(value);
-        } else if (key.equals(Constants.PR_GATEWAY_S_BACKLOG)) {
-        eeGateway.setHTTPSBacklog(value);
-        } else if (key.equals(Constants.PR_ADMIN_S_BACKLOG)) {
-        raAdmin.setHTTPSBacklog(value);
-        } else if (key.equals(Constants.PR_GATEWAY_BACKLOG)) {
-        gatewayBacklog = value;
-        } else if (key.equals(Constants.PR_GATEWAY_PORT_ENABLED)) {
-        eeHTTPEnabled = value;
-        }
-        }
-
-
-        eeHTTPportString    = req.getParameter(Constants.PR_GATEWAY_PORT);
-        eeHTTPSportString   = req.getParameter(Constants.PR_GATEWAY_S_PORT);
-        agentHTTPSportString= req.getParameter(Constants.PR_AGENT_S_PORT);
-        radminHTTPSportString= req.getParameter(Constants.PR_ADMIN_S_PORT);
-
-
-        int eeHTTPport=0;
-        int eeHTTPSport=0;
-        int agentHTTPSport=0;
-        int radminHTTPSport=0;
-        if (eeHTTPportString != null)  eeHTTPport  = Integer.parseInt(eeHTTPportString);
-        if (eeHTTPSportString != null) eeHTTPSport = Integer.parseInt(eeHTTPSportString);
-        if (agentHTTPSportString != null) agentHTTPSport = Integer.parseInt(agentHTTPSportString);
-        if (radminHTTPSportString != null) radminHTTPSport = Integer.parseInt(radminHTTPSportString);
-
-        
-        String portName="";
-        int portnum;
-        try {
-
-        // EE HTTP is special, since it has it's own checkbox for enabling/disabling
-        if (eeHTTPEnabled.equals(Constants.TRUE) && 
-        eeHTTPport != 0 && 
-        eeHTTPport != eeGateway.getHTTPPort())
-        {
-        portName = "End-entity";
-        checkPortAvailable(eeHTTPport);
-        }
-
-        if (eeHTTPSport != 0 && eeHTTPSport != eeGateway.getHTTPSPort()) {
-        portName = "SSL End-entity";
-        checkPortAvailable(eeHTTPSport);
-        }
-        if (agentHTTPSport != 0 && agentHTTPSport != agent.getHTTPSPort()) {
-        portName = "Agent";
-        checkPortAvailable(agentHTTPSport);
-        }
-        if (radminHTTPSport != 0 && radminHTTPSport != raAdmin.getHTTPSPort()) {
-        portName = "Remote Admin";
-        checkPortAvailable(radminHTTPSport);
-        }
-
-        // If any of the above ports are not available, an exception 
-        // will be thrown and these methods below will not be called
-        
-        if (eeHTTPEnabled.equals(Constants.TRUE)) {
-        eeGateway.setHTTPPort(eeHTTPport);
-        }
-        eeGateway.setHTTPSPort(eeHTTPSport);
-        agent.setHTTPSPort(agentHTTPSport);
-        raAdmin.setHTTPSPort(radminHTTPSport);
-
-        } catch (IOException e) {
-        // send 'port in use' error
-        sendResponse(ERROR, portName+" "+e.getMessage(), null, resp);
-        // we do not want to save the config in this case
-        return;
-        }
-        
-        eeGateway.setHTTPBacklog(gatewayBacklog);
-        eeGateway.setHTTPPortEnable(eeHTTPEnabled);
-
-        mConfig.commit(true);
-        sendResponse(RESTART, null, null, resp);
-        */
-    }
-
-    /**
-     * Check if the port is available for binding.
-     * @throws IOException if not available
-     */
-
-    private void checkPortAvailable(int port)
-        throws IOException {
-        try {
-            // see if the port is being used by somebody else
-            ServerSocket ss = new ServerSocket(port);
-
-            ss.close();
-        } catch (Exception e) {
-            throw new IOException("port " + port + " is in use. Please select another port");
-        }
-    }
-
-    /**
-     * Reads network information.
-     */
-    private void readNetworkConfig(HttpServletRequest req,
-        HttpServletResponse resp) throws ServletException,
-            IOException, EBaseException {
-
-        NameValuePairs params = new NameValuePairs();
-
-        getEENetworkConfig(params);
-        getAdminConfig(params);
-        getAgentConfig(params);
-
-        sendResponse(SUCCESS, null, params, resp);
-    }
-
-    private void getEENetworkConfig(NameValuePairs params) 
-        throws EBaseException {
-
-        /*
-         HTTPSubsystem eeGateway =
-         (HTTPSubsystem)mReg.get("eeGateway");
-         if (eeGateway == null) {
-         // i.e. standalone DRM
-        params.add(Constants.PR_GATEWAY_S_PORT, "-1");
-        params.add(Constants.PR_GATEWAY_PORT, "-1");
-        params.add(Constants.PR_GATEWAY_S_BACKLOG, "-1");
-        params.add(Constants.PR_GATEWAY_BACKLOG,"-1");
-        params.add(Constants.PR_GATEWAY_PORT_ENABLED,"false");
-        } else {
-        params.add(Constants.PR_GATEWAY_S_PORT, 
-        ""+eeGateway.getHTTPSPort());
-        params.add(Constants.PR_GATEWAY_PORT, 
-        ""+eeGateway.getHTTPPort());
-        params.add(Constants.PR_GATEWAY_S_BACKLOG, 
-        ""+eeGateway.getHTTPBacklog());
-        params.add(Constants.PR_GATEWAY_BACKLOG,
-        ""+eeGateway.getHTTPSBacklog());
-        params.add(Constants.PR_GATEWAY_PORT_ENABLED,
-        eeGateway.getHTTPPortEnable());
-        }
-        */
-    }
-
-    private void getAdminConfig(NameValuePairs params) throws EBaseException {
-
-        /*
-         RemoteAdmin raAdmin = (RemoteAdmin)RemoteAdmin.getInstance();
-         params.add(Constants.PR_ADMIN_S_PORT, ""+raAdmin.getHTTPSPort());
-         params.add(Constants.PR_ADMIN_S_BACKLOG,""+raAdmin.getHTTPSBacklog());
-         */
-    }
-
-    private void getAgentConfig(NameValuePairs params) throws EBaseException {
-
-        /*
-         AgentGateway agent = (AgentGateway)mReg.get(AgentGateway.ID);
-         params.add(Constants.PR_AGENT_S_PORT, ""+agent.getHTTPSPort());
-         params.add(Constants.PR_AGENT_S_BACKLOG,""+agent.getHTTPSBacklog());
-         */
-    }
-
-    /**
      * Modifies database information.
      */
     private void setDBConfig(HttpServletRequest req,
@@ -2077,37 +1886,6 @@ private void 	createMasterKey(HttpServletRequest req,
        }
     }
 
-    private String getDefaultSigningAlg(String keyType, String messageDigest) {
-        if (keyType.equals("RSA")) {
-            if (messageDigest.equals("MD2")) {
-                return "MD2withRSA";
-            } else if (messageDigest.equals("MD5")) {
-                return "MD5withRSA";
-            } else if (messageDigest.equals("SHA1")) { 
-                return "SHA1withRSA";
-            } else if (messageDigest.equals("SHA256")) {
-                return "SHA256withRSA";
-            } else if (messageDigest.equals("SHA512")) {
-                return "SHA512withRSA";
-            }
-        } else if (keyType.equals("DSA")) {
-            if (messageDigest.equals("SHA1")) {
-                return "SHA1withDSA";
-            }
-        } else /* EC */ {
-            if (messageDigest.equals("SHA1")) {
-                return "SHA1withEC";
-            } else if (messageDigest.equals("SHA256")) {
-                return "SHA256withEC";
-            } else if (messageDigest.equals("SHA384")) {
-                return "SHA384withEC";
-            } else if (messageDigest.equals("SHA512")) {
-                return "SHA512withEC";
-            }
-        }
-        return null;
-    }
-
     private void updateCASignature(String nickname, KeyCertData properties, 
         ICryptoSubsystem jssSubSystem) throws EBaseException {
         String alg = jssSubSystem.getSignatureAlgorithm(nickname);
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/KRAAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/KRAAdminServlet.java
index 5b318f61f76b66de778b24780e079279e0aaa719..a9982f1995536c16d32b5f506470d1302596d861 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/KRAAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/KRAAdminServlet.java
@@ -20,9 +20,6 @@ package com.netscape.cms.servlet.admin;
 
 import java.io.IOException;
 import java.util.Enumeration;
-import java.util.Hashtable;
-import java.util.StringTokenizer;
-import java.util.Vector;
 
 import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
@@ -31,17 +28,12 @@ import javax.servlet.http.HttpServletResponse;
 
 import com.netscape.certsrv.apps.CMS;
 import com.netscape.certsrv.base.EBaseException;
-import com.netscape.certsrv.base.IConfigStore;
 import com.netscape.certsrv.common.Constants;
 import com.netscape.certsrv.common.NameValuePairs;
 import com.netscape.certsrv.common.OpDef;
 import com.netscape.certsrv.common.ScopeDef;
-import com.netscape.certsrv.kra.EKRAException;
 import com.netscape.certsrv.kra.IKeyRecoveryAuthority;
 import com.netscape.certsrv.logging.ILogger;
-import com.netscape.certsrv.password.IPasswordCheck;
-import com.netscape.certsrv.security.Credential;
-import com.netscape.certsrv.security.IStorageKeyUnit;
 
 
 /**
@@ -235,659 +227,4 @@ public class KRAAdminServlet extends AdminServlet {
         else
             sendResponse(SUCCESS, null, null, resp);
     }
-
-    /**
-     * Changes M-N scheme.
-     * <P>
-     *
-     * <ul>
-     * <li>signed.audit LOGGING_SIGNED_AUDIT_CONFIG_DRM used when configuring
-     * DRM (Key recovery scheme, change of any secret component)
-     * </ul>
-     * @param req HTTP servlet request
-     * @param resp HTTP servlet response
-     * @exception EBaseException an error has occurred
-     */
-    private synchronized void changeMNScheme(HttpServletRequest req, 
-        HttpServletResponse resp) throws EBaseException {
-        String auditMessage = null;
-        String auditSubjectID = auditSubjectID();
-
-        // ensure that any low-level exceptions are reported
-        // to the signed audit log and stored as failures
-        try {
-            try {
-                NameValuePairs params = new NameValuePairs();
-                String recN = getParameter(req, 
-                        Constants.PR_RECOVERY_N);
-                String recM = getParameter(req, 
-                        Constants.PR_RECOVERY_M);
-                String oldAgents = getParameter(req, 
-                        Constants.PR_OLD_RECOVERY_AGENT);
-                String agents = getParameter(req, 
-                        Constants.PR_RECOVERY_AGENT);
-
-                if (recN == null) {
-                    // store a message in the signed audit log file
-                    auditMessage = CMS.getLogMessage(
-                                       LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                       auditSubjectID,
-                                       ILogger.FAILURE,
-                                       auditParams(req));
-
-                    audit(auditMessage);
-
-                    throw new EKRAException(
-                                  CMS.getLogMessage("KRA_INVALID_N"));
-                }
-
-                if (recM == null) {
-                    // store a message in the signed audit log file
-                    auditMessage = CMS.getLogMessage(
-                                       LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                       auditSubjectID,
-                                       ILogger.FAILURE,
-                                       auditParams(req));
-
-                    audit(auditMessage);
-
-                    throw new EKRAException(
-                                  CMS.getLogMessage("KRA_INVALID_M"));
-                }
-
-                if (recN != null && recM != null && oldAgents != null 
-                    && agents != null) {
-                    int nVal = Integer.parseInt(recN);
-
-                    int mVal = Integer.parseInt(recM);
-
-                    Credential oldcreds[] = 
-                        parseCredentialStr(oldAgents);
-
-                    if (oldcreds == null) {
-                        // store a message in the signed audit log file
-                        auditMessage = CMS.getLogMessage(
-                                    LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                    auditSubjectID,
-                                    ILogger.FAILURE,
-                                    auditParams(req));
-
-                        audit(auditMessage);
-
-                        throw new EKRAException(	
-                                CMS.getLogMessage("KRA_INVALID_PASSWORD"));
-                    }
-
-                    Credential creds[] = 
-                        parseCredentialStr(agents);
-
-                    if (creds == null) {
-                        // store a message in the signed audit log file
-                        auditMessage = CMS.getLogMessage(
-                                    LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                    auditSubjectID,
-                                    ILogger.FAILURE,
-                                    auditParams(req));
-
-                        audit(auditMessage);
-
-                        throw new EKRAException(	
-                                CMS.getLogMessage("KRA_INVALID_PASSWORD"));
-                    } else {
-                        for (int i = 0; i < creds.length; i++) {
-                            Credential credential = creds[i];
-                            String pass = credential.getPassword();
-                            IPasswordCheck checker = CMS.getPasswordChecker();
-
-                            if (!checker.isGoodPassword(pass)) {
-                                // store a message in the signed audit log file
-                                auditMessage = CMS.getLogMessage(
-                                            LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                            auditSubjectID,
-                                            ILogger.FAILURE,
-                                            auditParams(req));
-
-                                audit(auditMessage);
-
-                                throw new EBaseException(checker.getReason(pass));
-                            }
-                        }
-                    }
-                    if (mKRA.getStorageKeyUnit().changeAgentMN(
-                            nVal, mVal, oldcreds, creds)) {
-                        // store a message in the signed audit log file
-                        auditMessage = CMS.getLogMessage(
-                                    LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                    auditSubjectID,
-                                    ILogger.SUCCESS,
-                                    auditParams(req));
-
-                        audit(auditMessage);
-
-                        // successful operation
-                        sendResponse(SUCCESS, null, params, 
-                            resp);
-                        return;
-                    }
-                }
-            } catch (IOException e) {
-            }
-
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            throw new EBaseException(CMS.getLogMessage("BASE_INVALID_OPERATION"));
-        } catch (EBaseException eAudit1) {
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            // rethrow the specific exception to be handled later
-            throw eAudit1;
-        }
-    }
-
-    /**
-     * Changes recovery agent password.
-     * <P>
-     *
-     * <ul>
-     * <li>signed.audit LOGGING_SIGNED_AUDIT_CONFIG_DRM used when configuring
-     * DRM (Key recovery scheme, change of any secret component)
-     * </ul>
-     * @param req HTTP servlet request
-     * @param resp HTTP servlet response
-     * @exception EBaseException an error has occurred
-     */
-    private synchronized void changeAgentPwd(HttpServletRequest req, 
-        HttpServletResponse resp) throws EBaseException {
-        String auditMessage = null;
-        String auditSubjectID = auditSubjectID();
-
-        // ensure that any low-level exceptions are reported
-        // to the signed audit log and stored as failures
-        try {
-            try {
-                String id = getParameter(req, Constants.RS_ID);
-                String oldpwd = getParameter(req, 
-                        Constants.PR_OLD_AGENT_PWD);
-                String newpwd = getParameter(req, 
-                        Constants.PR_AGENT_PWD);
-                IPasswordCheck checker = CMS.getPasswordChecker();
-
-                if (!checker.isGoodPassword(newpwd)) {
-                    // store a message in the signed audit log file
-                    auditMessage = CMS.getLogMessage(
-                                LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                auditSubjectID,
-                                ILogger.FAILURE,
-                                auditParams(req));
-
-                    audit(auditMessage);
-
-                    throw new EBaseException(checker.getReason(newpwd));
-                }
-          
-                if (mKRA.getStorageKeyUnit().changeAgentPassword(id, 
-                        oldpwd, newpwd)) {
-                    NameValuePairs params = new NameValuePairs();
-
-                    // store a message in the signed audit log file
-                    auditMessage = CMS.getLogMessage(
-                                LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                auditSubjectID,
-                                ILogger.SUCCESS,
-                                auditParams(req));
-
-                    audit(auditMessage);
-
-                    sendResponse(SUCCESS, null, params, resp);
-                    return;
-                } else {
-                    // store a message in the signed audit log file
-                    auditMessage = CMS.getLogMessage(
-                                LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                auditSubjectID,
-                                ILogger.FAILURE,
-                                auditParams(req));
-
-                    audit(auditMessage);
-
-                    throw new EKRAException(	
-                            CMS.getLogMessage("KRA_INVALID_PASSWORD"));
-                }
-            } catch (IOException e) {
-            }
-
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            throw new EBaseException(CMS.getLogMessage("BASE_INVALID_OPERATION"));
-        } catch (EBaseException eAudit1) {
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            // rethrow the specific exception to be handled later
-            throw eAudit1;
-        }
-    }
-
-    /**
-     * Modifies auto recovery configuration.
-     * <P>
-     *
-     * <ul>
-     * <li>signed.audit LOGGING_SIGNED_AUDIT_CONFIG_DRM used when configuring
-     * DRM (Key recovery scheme, change of any secret component)
-     * </ul>
-     * @param req HTTP servlet request
-     * @param resp HTTP servlet response
-     * @exception EBaseException an error has occurred
-     */
-    private synchronized void modifyAutoRecoveryConfig(
-        HttpServletRequest req, HttpServletResponse resp) 
-        throws EBaseException {
-        String auditMessage = null;
-        String auditSubjectID = auditSubjectID();
-
-        // ensure that any low-level exceptions are reported
-        // to the signed audit log and stored as failures
-        try {
-            try {
-                NameValuePairs params = new NameValuePairs();
-                String autoOn = getParameter(req, 
-                        Constants.PR_AUTO_RECOVERY_ON);
-                String agents = getParameter(req, 
-                        Constants.PR_RECOVERY_AGENT);
-
-                if (autoOn.equals(Constants.TRUE)) {
-                    Credential creds[] = parseCredentialStr(
-                            agents);
-
-                    if (mKRA.setAutoRecoveryState(creds, true)) {
-                        // store a message in the signed audit log file
-                        auditMessage = CMS.getLogMessage(
-                                    LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                    auditSubjectID,
-                                    ILogger.SUCCESS,
-                                    auditParams(req));
-
-                        audit(auditMessage);
-
-                        sendResponse(SUCCESS, null, params, 
-                            resp);
-                        return;
-                    }
-                } else if (autoOn.equals(Constants.FALSE)) {
-                    if (mKRA.setAutoRecoveryState(null, false)) {
-                        // store a message in the signed audit log file
-                        auditMessage = CMS.getLogMessage(
-                                    LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                                    auditSubjectID,
-                                    ILogger.SUCCESS,
-                                    auditParams(req));
-
-                        audit(auditMessage);
-
-                        sendResponse(SUCCESS, null, params, 
-                            resp);
-                        return;
-                    }
-                }
-            } catch (IOException e) {
-            }
-
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            throw new EBaseException(CMS.getLogMessage("BASE_INVALID_OPERATION"));
-        } catch (EBaseException eAudit1) {
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            // rethrow the specific exception to be handled later
-            throw eAudit1;
-        }
-    }
-
-    /**
-     * Reads auto recovery status.
-     *
-     * @param req HTTP request
-     * @param resp HTTP response
-     */
-    private synchronized void readAutoRecoveryConfig(
-        HttpServletRequest req, HttpServletResponse resp) 
-        throws EBaseException {
-        try {
-            NameValuePairs params = new NameValuePairs();
-
-            params.add(Constants.PR_AUTO_RECOVERY_ON, 
-                mKRA.getAutoRecoveryState() ?
-                Constants.TRUE : Constants.FALSE);
-            sendResponse(SUCCESS, null, params, resp);
-        } catch (IOException e) {
-            throw new EBaseException(
-                    CMS.getLogMessage("BASE_INVALID_OPERATION"));
-        }
-    }
-
-    /**
-     * Reads recovery configuration.
-     *
-     * @param req HTTP request
-     * @param resp HTTP response
-     */
-    private synchronized void readRecoveryConfig(
-        HttpServletRequest req, HttpServletResponse resp) 
-        throws EBaseException {
-        try {
-            IStorageKeyUnit sku = mKRA.getStorageKeyUnit();
-            NameValuePairs params = new NameValuePairs();
-
-            params.add(Constants.PR_RECOVERY_N, 
-                Integer.toString(sku.getNoOfAgents()));
-            params.add(Constants.PR_RECOVERY_M, 
-                Integer.toString(sku.getNoOfRequiredAgents()));
-            Enumeration e = sku.getAgentIdentifiers();
-            StringBuffer as = new StringBuffer();
-
-            while (e.hasMoreElements()) {
-                as.append((String)e.nextElement());
-                if (e.hasMoreElements()) {
-                    as.append(",");
-                }
-            }
-            params.add(Constants.PR_RECOVERY_AGENT, as.toString());
-            sendResponse(SUCCESS, null, params, resp);
-        } catch (IOException e) {
-            throw new EBaseException(
-                    CMS.getLogMessage("BASE_INVALID_OPERATION"));
-        }
-    }
-
-    /**
-     * Reads information about auto recovery agents.
-     *
-     * @param req HTTP request
-     * @param resp HTTP response
-     */
-    private synchronized void readAutoRecoveryAgents(
-        HttpServletRequest req, HttpServletResponse resp) 
-        throws EBaseException {
-        try {
-            // send the entire list anyway
-            NameValuePairs params = new NameValuePairs();
-            Enumeration e = mKRA.getAutoRecoveryIDs();
-            StringBuffer users = new StringBuffer();
-
-            while (e.hasMoreElements()) {
-                users.append((String) e.nextElement());
-                if (e.hasMoreElements()) {
-                    users.append(",");
-                }
-            }
-            params.add(Constants.PR_GROUP_USER, users.toString());
-            params.add(Constants.PR_GROUP_DESC, 
-                "Auto Recovery Agents"); // XXX - localized
-            sendResponse(SUCCESS, null, params, resp);
-        } catch (IOException e) {
-            throw new EBaseException(
-                    CMS.getLogMessage("BASE_INVALID_OPERATION"));
-        }
-    }
-
-    /**
-     * Modifies information about auto recovery agents.
-     *
-     * @param req HTTP request
-     * @param resp HTTP response
-     */
-    private synchronized void modifyAutoRecoveryAgents(
-        HttpServletRequest req, HttpServletResponse resp) 
-        throws EBaseException {
-        Vector v = new Vector();
-        String users = getParameter(req, 
-                Constants.PR_GROUP_USER);
-        StringTokenizer st = new StringTokenizer(users, ",");
-
-        while (st.hasMoreTokens()) {
-            v.addElement(st.nextToken());
-        }
-        String desc = getParameter(req, 
-                Constants.PR_GROUP_DESC);
-        String agents = getParameter(req, 
-                Constants.PR_RECOVERY_AGENT);
-        Credential creds[] = parseCredentialStr(
-                agents);
-        // XXX - check if the given password matched
-        // put ids into hashtable so that we can
-        // figure out what should be saved and deleted
-        Enumeration e = mKRA.getAutoRecoveryIDs();	
-        Hashtable h = new Hashtable();
-
-        while (e.hasMoreElements()) {
-            h.put(e.nextElement(), "");
-        }
-
-        // go through each of the user in the new list
-        for (int i = 0; i < v.size(); i++) {
-            String key = (String) v.elementAt(i);
-
-            if (h.containsKey(key)) {
-                h.remove(key);
-            } else {
-                mKRA.addAutoRecovery(key, creds);
-            }
-        }
-
-        // delete all the unreferenced
-        Enumeration dels = h.keys();
-
-        while (dels.hasMoreElements()) {
-            mKRA.removeAutoRecovery((String)
-                dels.nextElement());
-        }
-    }
-
-    /**
-     * Parses uid0=pwd0,uid1=pwd1,... into AgentCredential.
-     *
-     * @param s credential string
-     * @return a list of credentials
-     */
-    private Credential[] parseCredentialStr(String s) {
-        StringTokenizer st = new StringTokenizer(s, ",");
-        Vector v = new Vector();
-
-        while (st.hasMoreTokens()) {
-            String a = st.nextToken();
-            StringTokenizer st0 = new StringTokenizer(a, "=");
-
-            v.addElement(new Credential(st0.nextToken(),
-                    st0.nextToken()));
-        }
-        Credential ac[] = new Credential[v.size()];
-
-        v.copyInto(ac);
-        return ac;
-    }
-
-    /*
-     * handle getting request in queue notification config info
-     */
-    private void getNotificationRIQConfig(HttpServletRequest req,
-        HttpServletResponse resp) throws ServletException,
-            IOException, EBaseException {
-
-        NameValuePairs params = new NameValuePairs();
-
-        IConfigStore config = mKRA.getConfigStore();
-        IConfigStore nc =
-            config.getSubStore(mKRA.PROP_NOTIFY_SUBSTORE);
-
-        IConfigStore riq = nc.getSubStore(mKRA.PROP_REQ_IN_Q_SUBSTORE);
-
-        Enumeration e = req.getParameterNames();
-
-        while (e.hasMoreElements()) {
-            String name = (String) e.nextElement();
-
-            if (name.equals(Constants.OP_TYPE))
-                continue;
-            if (name.equals(Constants.RS_ID))
-                continue;
-            if (name.equals(Constants.OP_SCOPE))
-                continue;
-            if (name.equals(Constants.PR_ENABLE))
-                continue;
-            params.add(name, riq.getString(name, ""));
-        }
-
-        params.add(Constants.PR_ENABLE, 
-            riq.getString(PROP_ENABLED, Constants.FALSE));
-        //System.out.println("Send: "+params.toString());
-        sendResponse(SUCCESS, null, params, resp);
-    }
-
-    /**
-     * Handle setting request in queue notification config info
-     * <P>
-     *
-     * <ul>
-     * <li>signed.audit LOGGING_SIGNED_AUDIT_CONFIG_DRM used when configuring
-     * DRM (Key recovery scheme, change of any secret component)
-     * </ul>
-     * @param req HTTP servlet request
-     * @param resp HTTP servlet response
-     * @exception ServletException a servlet error has occurred
-     * @exception IOException an input/output error has occurred
-     * @exception EBaseException an error has occurred
-     */
-    private void setNotificationRIQConfig(HttpServletRequest req,
-        HttpServletResponse resp) throws ServletException,
-            IOException, EBaseException {
-        String auditMessage = null;
-        String auditSubjectID = auditSubjectID();
-
-        // ensure that any low-level exceptions are reported
-        // to the signed audit log and stored as failures
-        try {
-            IConfigStore config = mKRA.getConfigStore();
-            IConfigStore nc =
-                config.getSubStore(mKRA.PROP_NOTIFY_SUBSTORE);
-
-            IConfigStore riq = nc.getSubStore(mKRA.PROP_REQ_IN_Q_SUBSTORE);
-
-            //set rest of the parameters
-            Enumeration e = req.getParameterNames();
-
-            while (e.hasMoreElements()) {
-                String name = (String) e.nextElement();
-
-                if (name.equals(Constants.OP_TYPE))
-                    continue;
-                if (name.equals(Constants.RS_ID))
-                    continue;
-                if (name.equals(Constants.OP_SCOPE))
-                    continue;
-                if (name.equals(Constants.PR_ENABLE))
-                    continue;
-                String val = req.getParameter(name);
-
-                riq.putString(name, val);
-                mKRA.getRequestInQListener().set(name, val);
-            }
-
-            // set enable flag
-            String enabledString = req.getParameter(Constants.PR_ENABLE);
-
-            riq.putString(PROP_ENABLED, enabledString);
-            mKRA.getRequestInQListener().set(PROP_ENABLED, enabledString);
-
-            commit(true);
-
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.SUCCESS,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            sendResponse(SUCCESS, null, null, resp);
-        } catch (EBaseException eAudit1) {
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            // rethrow the specific exception to be handled later
-            throw eAudit1;
-        } catch (IOException eAudit2) {
-            // store a message in the signed audit log file
-            auditMessage = CMS.getLogMessage(
-                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-                        auditSubjectID,
-                        ILogger.FAILURE,
-                        auditParams(req));
-
-            audit(auditMessage);
-
-            // rethrow the specific exception to be handled later
-            throw eAudit2;
-            // } catch( ServletException eAudit3 ) {
-            //     // store a message in the signed audit log file
-            //     auditMessage = CMS.getLogMessage(
-            //                        LOGGING_SIGNED_AUDIT_CONFIG_DRM,
-            //                        auditSubjectID,
-            //                        ILogger.FAILURE,
-            //                        auditParams( req ) );
-            //
-            //     audit( auditMessage );
-            //
-            //     // rethrow the specific exception to be handled later
-            //     throw eAudit3;
-        }
-    }
 }
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java
index 316654720b0d13d8b7cea0df89ef9fd48265dea5..68c2ab2fca50a42a369ee5fd3e3d41b708804cb7 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java
@@ -1405,81 +1405,6 @@ public class LogAdminServlet extends AdminServlet {
         }
     }
 
-    private synchronized void getLogConfig(HttpServletRequest req, 
-        HttpServletResponse resp)
-        throws ServletException, IOException, EBaseException {
-
-        String implname = req.getParameter(Constants.RS_ID);
-
-        if (implname == null) {
-            //System.out.println("SRVLT_NULL_RS_ID");
-            sendResponse(ERROR,
-                CMS.getUserMessage(getLocale(req), "CMS_ADMIN_SRVLT_NULL_RS_ID"),
-                null, resp);
-            return;
-        }
-
-        Vector configParams = mSys.getLogDefaultParams(implname);
-        NameValuePairs params = new NameValuePairs();
-
-        // implName is always required so always send it.
-        params.add(Constants.PR_LOG_IMPL_NAME, "");
-        if (configParams != null) {
-            for (int i = 0; i < configParams.size(); i++) {
-                String kv = (String) configParams.elementAt(i);
-                int index = kv.indexOf('=');
-
-                params.add(kv.substring(0, index), 
-                    kv.substring(index + 1));
-            }
-        }
-        sendResponse(0, null, params, resp);
-        return;
-    }
-
-    private synchronized void getLogInstConfig(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        String id = req.getParameter(Constants.RS_ID);
-
-        if (id == null) {
-            //System.out.println("SRVLT_NULL_RS_ID");
-            sendResponse(ERROR,
-                CMS.getUserMessage(getLocale(req), "CMS_ADMIN_SRVLT_NULL_RS_ID"),
-                null, resp);
-            return;
-        }
-
-        // does log instance exist?
-        if (mSys.getLogInsts().containsKey(id) == false) {
-            sendResponse(ERROR,
-                new ELogNotFound(CMS.getUserMessage(getLocale(req),"CMS_LOG_INSTANCE_NOT_FOUND",id)).toString(),
-                null, resp);
-            return;
-        }
-
-        ILogEventListener logInst = (ILogEventListener)
-            mSys.getLogInstance(id);
-        Vector configParams = logInst.getInstanceParams();
-        NameValuePairs params = new NameValuePairs();
-
-        params.add(Constants.PR_LOG_IMPL_NAME, 
-            getLogPluginName(logInst));
-        // implName is always required so always send it.
-        if (configParams != null) {
-            for (int i = 0; i < configParams.size(); i++) {
-                String kv = (String) configParams.elementAt(i);
-                int index = kv.indexOf('=');
-
-                params.add(kv.substring(0, index), 
-                    kv.substring(index + 1));
-            }
-        }
-
-        sendResponse(SUCCESS, null, params, resp);
-        return;
-    }
-
     /**
      * Modify log instance
      * <P>
@@ -2379,29 +2304,6 @@ public class LogAdminServlet extends AdminServlet {
         return logPath;
     }
 
-    /**
-     * Signed Audit Check Log Expiration Time
-     *
-     * This method is called to extract the log expiration time.
-     * <P>
-     *
-     * @param req http servlet request
-     * @return a string containing the log expiration time
-     */
-    private String auditCheckLogExpirationTime(HttpServletRequest req) {
-        // check to see if the log expiration time parameter was changed
-        String expirationTime = req.getParameter(
-                Constants.PR_LOG_EXPIRED_TIME);
-
-        if (expirationTime == null) {
-            expirationTime = "";
-        }
-
-        expirationTime = expirationTime.trim();
-
-        return expirationTime;
-    }
-
     private void getGeneralConfig(HttpServletRequest req,
         HttpServletResponse resp) throws ServletException,
             IOException, EBaseException {
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/OCSPAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/OCSPAdminServlet.java
index 7101dc5207738d123bad66e36c4068b245cd6a72..47d66c4f0747d4e95f4547736b48b3b8ddac4763 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/OCSPAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/OCSPAdminServlet.java
@@ -533,25 +533,7 @@ public class OCSPAdminServlet extends AdminServlet {
 
             // rethrow the specific exception to be handled later
             throw eAudit2;
-            // } catch( ServletException eAudit3 ) {
-            //     // store a message in the signed audit log file
-            //     auditMessage = CMS.getLogMessage(
-            //                        LOGGING_SIGNED_AUDIT_CONFIG_OCSP_PROFILE,
-            //                        auditSubjectID,
-            //                        ILogger.FAILURE,
-            //                        auditParams( req ) );
-            //
-            //     audit( auditMessage );
-            //
-            //     // rethrow the specific exception to be handled later
-            //     throw eAudit3;
+            
         }
     }
-
-    private void log(int level, String msg) {
-        if (mLogger == null)
-            return;
-        mLogger.log(ILogger.EV_SYSTEM, null, ILogger.S_OTHER,
-            level, "CAAdminServlet: " + msg);
-    }
 }    
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/ProfileAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/ProfileAdminServlet.java
index 4059b03b62672ad0e7bb9cc2bb03ac9165fb73cc..0da6a2d3a58a69963f1decb93a1e59e6408dd5a9 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/ProfileAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/ProfileAdminServlet.java
@@ -38,7 +38,6 @@ import com.netscape.certsrv.common.NameValuePairs;
 import com.netscape.certsrv.common.OpDef;
 import com.netscape.certsrv.common.ScopeDef;
 import com.netscape.certsrv.logging.ILogger;
-import com.netscape.certsrv.policy.IPolicyRule;
 import com.netscape.certsrv.profile.EProfileException;
 import com.netscape.certsrv.profile.IPolicyConstraint;
 import com.netscape.certsrv.profile.IPolicyDefault;
@@ -121,20 +120,6 @@ public class ProfileAdminServlet extends AdminServlet {
         return INFO;
     }
 
-    private void addDefaultParams(Object ext_info, NameValuePairs nvps) {
-
-        /* make sure policy rules have 'enable' and 'predicate' */
-
-        if (ext_info instanceof IPolicyRule) {
-            if (nvps.getPair(IPolicyRule.PROP_ENABLE) == null) {
-                nvps.add(IPolicyRule.PROP_ENABLE, "boolean;Enable this policy rule");
-            }
-            if (nvps.getPair(PROP_PREDICATE) == null) {
-                nvps.add(PROP_PREDICATE, "string;Rules describing when this policy should run.");
-            }
-        }
-    }
-
     /**
      * Serves HTTP admin request.
      */
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/UsrGrpAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/UsrGrpAdminServlet.java
index b20797bfb0335b1a85353ea3c0a299b9ae216ee0..e9264aa1ddf27de2ee70af0f552c2e47cf0082ac 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/UsrGrpAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/UsrGrpAdminServlet.java
@@ -333,35 +333,6 @@ public class UsrGrpAdminServlet extends AdminServlet {
     }
 
     /**
-     * Retrieves configuration parameters of 
-     * authentication manager.
-     */
-    private synchronized void getConfig(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        super.getConfig(mMgr.getConfigStore(), req, resp);
-    }
-
-    /**
-     * Sets configuration parameters of 
-     * User/Group manager.
-     */
-    private synchronized void setConfig(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        super.setConfig(mMgr.getConfigStore(), req, resp);
-    }
-
-    /**
-     * Lists configuration parameters.
-     */
-    private synchronized void listConfig(HttpServletRequest req, 
-        HttpServletResponse resp) throws ServletException, 
-            IOException, EBaseException {
-        super.listConfig(mMgr.getConfigStore(), req, resp);
-    }
-
-    /**
      * Searches for users in LDAP directory.  List uids only
      *
      * Request/Response Syntax:
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/CMCRevReqServlet.java b/pki/base/common/src/com/netscape/cms/servlet/cert/CMCRevReqServlet.java
index cd3326fb7990a728a4d4eda2a22038c44d9662c3..9e866d5f09ec0d5439b0e66d087f3473fd91e29c 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/cert/CMCRevReqServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/cert/CMCRevReqServlet.java
@@ -21,7 +21,6 @@ package com.netscape.cms.servlet.cert;
 import java.io.IOException;
 import java.math.BigInteger;
 import java.security.cert.CertificateException;
-import java.security.cert.X509Certificate;
 import java.util.Date;
 import java.util.Enumeration;
 import java.util.Locale;
@@ -312,93 +311,6 @@ CMS.debug("**** mFormPath = "+mFormPath);
     }
 
     /**
-     * get cert to revoke from agent.
-     */
-    private BigInteger getCertFromAgent(
-        IArgBlock httpParams, X509Certificate[] certContainer)
-        throws EBaseException {
-        BigInteger serialno = null;
-        X509Certificate cert = null;
-
-        // get serial no
-        serialno = httpParams.getValueAsBigInteger(SERIAL_NO, null);
-        if (serialno == null) {
-            log(ILogger.LL_FAILURE, 
-                CMS.getLogMessage("CMSGW_MISSING_SERIALNO_FOR_REVOKE"));
-            throw new ECMSGWException(
-              CMS.getUserMessage("CMS_GW_MISSING_SERIALNO_FOR_REVOKE"));
-        }
-
-        // get cert from db if we're cert authority.
-        if (mAuthority instanceof ICertificateAuthority) {
-            cert = getX509Certificate(serialno);
-            if (cert == null) {
-                log(ILogger.LL_FAILURE, 
-                    CMS.getLogMessage("CMSGW_INVALID_CERT_FOR_REVOCATION"));
-                throw new ECMSGWException(
-                  CMS.getUserMessage("CMS_GW_INVALID_CERT_FOR_REVOCATION"));
-            }
-        }
-        certContainer[0] = cert;
-        return serialno;
-    }
-
-    /**
-     * Revoke the specified certificate
-     */
-    private BigInteger getCertFromAuthMgr(
-        AuthToken authToken, X509Certificate[] certContainer) 
-        throws EBaseException {
-        X509CertImpl cert =
-            authToken.getInCert(AuthToken.TOKEN_CERT);
-
-        if (cert == null) {
-            log(ILogger.LL_FAILURE, 
-                CMS.getLogMessage("CMSGW_MISSING_CERTS_REVOKE_FROM_AUTHMGR"));
-            throw new ECMSGWException(
-              CMS.getUserMessage("CMS_GW_MISSING_CERTS_REVOKE_FROM_AUTHMGR"));
-        }
-        if (mAuthority instanceof ICertificateAuthority && 
-            !isCertFromCA(cert)) {
-            log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSGW_INVALID_CERT_FOR_REVOCATION"));
-            throw new ECMSGWException(
-                  CMS.getUserMessage("CMS_GW_INVALID_CERT_FOR_REVOCATION"));
-        }
-        certContainer[0] = cert;
-        BigInteger serialno = ((X509Certificate) cert).getSerialNumber();
-
-        return serialno;
-    }
-
-    /**
-     * get cert to revoke from ssl 
-     */
-    private BigInteger getCertFromSSL(
-        HttpServletRequest req, X509CertImpl[] certContainer) 
-        throws EBaseException {
-        X509Certificate cert = getSSLClientCertificate(req);
-
-        if (cert == null) {
-            log(ILogger.LL_FAILURE, 
-                CMS.getLogMessage("CMSGW_MISSING_CERTS_REVOKE_FROM_SSL"));
-            throw new ECMSGWException(
-              CMS.getUserMessage("CMS_GW_MISSING_CERTS_REVOKE_FROM_SSL"));
-        }
-        if (mAuthority instanceof ICertificateAuthority && 
-            !isCertFromCA(cert)) {
-            log(ILogger.LL_FAILURE, 
-                CMS.getLogMessage("CMSGW_INVALID_CERT_FOR_REVOCATION", ""));
-            throw new ECMSGWException(
-                  CMS.getUserMessage("CMS_GW_INVALID_CERT_FOR_REVOCATION"));
-        }
-        BigInteger serialno = ((X509Certificate) cert).getSerialNumber();
-
-        certContainer[0] = (X509CertImpl) cert;
-
-        return serialno;
-    }
-
-    /**
      * Process cert status change request using the Certificate Management
      * protocol using CMS (CMC)
      * <P>
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/CloneRedirect.java b/pki/base/common/src/com/netscape/cms/servlet/cert/CloneRedirect.java
index 2f58e85cd8a445300202e62776f4c9d3154f4c82..bd405f21e849497bdcf7f65793d328f48c39ad41 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/cert/CloneRedirect.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/cert/CloneRedirect.java
@@ -138,19 +138,4 @@ public class CloneRedirect extends CMSServlet {
             throw new ECMSGWException(CMS.getLogMessage("CMSGW_ERROR_DISPLAY_TEMPLATE"));
         }
     }
-
-    /**
-     * Display information about redirecting to the master's URL info
-     */
-    private void process(CMSTemplateParams argSet, IArgBlock header,
-        HttpServletRequest req,
-        HttpServletResponse resp,
-        String signatureAlgorithm,
-        Locale locale)
-        throws EBaseException {
-
-        CMS.debug("CloneRedirect: " + CMS.getLogMessage("ADMIN_SRVLT_ADD_MASTER_URL", mNewUrl)); 
-        header.addStringValue("masterURL", mNewUrl);
-        return;
-    }
 }
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/EnrollServlet.java b/pki/base/common/src/com/netscape/cms/servlet/cert/EnrollServlet.java
index 2d1c28f4d424e6a6e8867b4937a953377237346c..afab8acdee276ee16372935b01f7da733c1d44d6 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/cert/EnrollServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/cert/EnrollServlet.java
@@ -37,9 +37,7 @@ import javax.servlet.http.HttpServletResponse;
 import netscape.security.pkcs.PKCS10;
 import netscape.security.x509.AlgorithmId;
 import netscape.security.x509.CertificateAlgorithmId;
-import netscape.security.x509.CertificateExtensions;
 import netscape.security.x509.CertificateX509Key;
-import netscape.security.x509.KeyUsageExtension;
 import netscape.security.x509.X509CertImpl;
 import netscape.security.x509.X509CertInfo;
 import netscape.security.x509.X509Key;
@@ -1714,71 +1712,6 @@ public class EnrollServlet extends CMSServlet {
         mIsTestBed = config.getBoolean("isTestBed", true);
     }
 
-    private void do_testbed_hack(
-        int nummsgs, X509CertInfo[] certinfo, IArgBlock httpParams) 
-        throws EBaseException {
-        if (!mIsTestBed) 
-            return;
-
-            // get around bug in cartman - bits are off by one byte.
-        for (int i = 0; i < certinfo.length; i++) {
-            try {
-                X509CertInfo cert = certinfo[i];
-                CertificateExtensions exts = (CertificateExtensions)
-                    cert.get(CertificateExtensions.NAME);
-
-                if (exts == null) {
-                    // should not happen.
-                    continue;
-                }
-                KeyUsageExtension ext = (KeyUsageExtension)
-                    exts.get(KeyUsageExtension.NAME);
-
-                if (ext == null) 
-                    // should not happen 
-                    continue;
-                byte[] value = ext.getExtensionValue();
-
-                if (value[0] == 0x03 && value[1] == 0x02 && value[2] == 0x07) {
-                    byte[] newvalue = new byte[value.length + 1];
-
-                    newvalue[0] = 0x03;
-                    newvalue[1] = 0x03;
-                    newvalue[2] = 0x07;
-                    newvalue[3] = value[3];
-                    // force encryption certs to have digitial signature 
-                    // set too so smime can find the cert for encryption.
-                    if (value[3] == 0x20) {
-
-                        /*
-                         newvalue[3] = 0x3f;
-                         newvalue[4] = (byte)0x80;
-                         */
-                        if (httpParams.getValueAsBoolean(
-                                "dual-use-hack", true)) {
-                            newvalue[3] = (byte) 0xE0; // same as rsa-dual-use.
-                        }
-                    }
-                    newvalue[4] = 0;
-                    KeyUsageExtension newext = 
-                        new KeyUsageExtension(Boolean.valueOf(true), 
-                            (Object) newvalue);
-
-                    exts.delete(KeyUsageExtension.NAME);
-                    exts.set(KeyUsageExtension.NAME, newext);
-
-                }
-            } catch (IOException e) {
-                // should never happen 
-                continue;
-            } catch (CertificateException e) {
-                // should never happen 
-                continue;
-            }
-        }
-
-    }
-
     /**
      * Signed Audit Log Info Certificate Value
      *
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/GetCAChain.java b/pki/base/common/src/com/netscape/cms/servlet/cert/GetCAChain.java
index 81e96e3a52af40f36e98743fee617ef9eb74de4f..545e6b5bab2d2429742e20e395895d51f3defa6f 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/cert/GetCAChain.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/cert/GetCAChain.java
@@ -386,15 +386,6 @@ import com.netscape.cms.servlet.common.ECMSGWException;
     }
 
     /**
-     * gets base 64 encoded cert chain
-     */
-    private String getChainBase64(byte[] certBytes) {
-        String certBase64 = CMS.BtoA(certBytes);
-
-        return certBase64;
-    }
-
-    /**
      * Retrieves locale based on the request.
      */
     protected Locale getLocale(HttpServletRequest req) {
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/ListCerts.java b/pki/base/common/src/com/netscape/cms/servlet/cert/ListCerts.java
index edbe81b7d253935a69d8d64db7a388db0008912f..cca773541af62dcd976d6929f0ede8374304fc6e 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/cert/ListCerts.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/cert/ListCerts.java
@@ -21,7 +21,6 @@ package com.netscape.cms.servlet.cert;
 import java.io.IOException;
 import java.math.BigInteger;
 import java.security.PublicKey;
-import java.util.Date;
 import java.util.Enumeration;
 import java.util.Locale;
 import java.util.StringTokenizer;
@@ -574,87 +573,6 @@ public class ListCerts extends CMSServlet {
     }
 
     /**
-     * Process the key search.
-     */
-    private void process(CMSTemplateParams argSet, IArgBlock header, 
-        int maxCount, int sentinel,
-        String filter, HttpServletRequest req,
-        HttpServletResponse resp,
-        String revokeAll, Locale locale)
-        throws EBaseException {
-        try {
-            if (filter.indexOf(CURRENT_TIME, 0) > -1) {
-                filter = insertCurrentTime(filter);
-            }
-            if (revokeAll != null && revokeAll.indexOf(CURRENT_TIME, 0) > -1) {
-                revokeAll = insertCurrentTime(revokeAll);
-            }
-
-            // xxx the filter includes serial number range???
-            ICertRecordList list = 
-                (ICertRecordList) mCertDB.findCertRecordsInList(filter, null, maxCount);
-            // sentinel is the index on the list now, not serial number
-            Enumeration e = 
-                list.getCertRecords(sentinel, sentinel + maxCount - 1);
-
-            int count = 0;
-
-            while (e != null && e.hasMoreElements()) {
-                ICertRecord rec = (ICertRecord) e.nextElement();
-
-                count++;
-                IArgBlock rarg = com.netscape.certsrv.apps.CMS.createArgBlock();
-
-                fillRecordIntoArg(rec, rarg);
-                argSet.addRepeatRecord(rarg);
-            }
-
-            header.addStringValue("op", req.getParameter("op"));
-            if (revokeAll != null)
-                header.addStringValue("revokeAll", revokeAll);
-            if (mAuthName != null)
-                header.addStringValue("issuerName", mAuthName.toString());
-            header.addStringValue("serviceURL", req.getRequestURI());
-            header.addStringValue("templateName", "queryCert");
-            header.addStringValue("queryFilter", filter);
-            header.addIntegerValue("maxCount", maxCount);
-            header.addIntegerValue("totalRecordCount", list.getSize());
-            if ((sentinel + count) < list.getSize())
-                header.addIntegerValue("querySentinelDown", sentinel + count);
-            else
-                header.addStringValue("querySentinelDown", null);
-        } catch (EBaseException e) {
-            log(ILogger.LL_FAILURE, com.netscape.certsrv.apps.CMS.getLogMessage("CMSGW_ERROR_LISTCERTS", e.toString()));
-            throw e;
-        }
-        return;
-    }
-
-    private String insertCurrentTime(String filter) {
-        Date now = null;
-        StringBuffer newFilter = new StringBuffer();
-        int k = 0;
-        int i = filter.indexOf(CURRENT_TIME, k);
-
-        while (i > -1) {
-            if (now == null) now = new Date();
-            if (newFilter.length() == 0) {
-                newFilter.append(filter.substring(k, i));
-                newFilter.append(now.getTime());
-            } else {
-                newFilter.append(filter.substring(k, i));
-                newFilter.append(now.getTime());
-            }
-            k = i + CURRENT_TIME.length();
-            i = filter.indexOf(CURRENT_TIME, k);
-        }
-        if (k > 0) {
-            newFilter.append(filter.substring(k, filter.length()));
-        }
-        return newFilter.toString();
-    }
-
-    /**
      * Fills cert record into argument block.
      */
     private void fillRecordIntoArg(ICertRecord rec, IArgBlock rarg)
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/scep/CRSEnrollment.java b/pki/base/common/src/com/netscape/cms/servlet/cert/scep/CRSEnrollment.java
index e2a40264423de0a3c103d1a07279eca8edaf96b7..cb5b96560e19b5595fb6db12d0740791f1daa3de 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/cert/scep/CRSEnrollment.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/cert/scep/CRSEnrollment.java
@@ -19,7 +19,6 @@ package com.netscape.cms.servlet.cert.scep;
 
 import java.io.ByteArrayInputStream;
 import java.io.FileOutputStream;
-import java.io.IOException;
 import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.security.PublicKey;
@@ -1849,19 +1848,7 @@ throws EBaseException {
 
 
 
-  /**
-   *  This needs to be re-written to log the messages to the system log, since there
-   *  will be no visual webpage feedback for the user. (he's using a router)
-   */
-
-  private void writeError(String errMsg, HttpServletRequest httpReq,
-                          HttpServletResponse httpResp)
-    throws IOException
-    {
-    }
-
-
-   protected String hashPassword(String pwd) {
+  protected String hashPassword(String pwd) {
         String salt = "lala123";
         byte[] pwdDigest = mSHADigest.digest((salt+pwd).getBytes());
         String b64E = com.netscape.osutil.OSUtil.BtoA(pwdDigest);
diff --git a/pki/base/common/src/com/netscape/cms/servlet/common/CMSTemplate.java b/pki/base/common/src/com/netscape/cms/servlet/common/CMSTemplate.java
index 4528ea7ed82fbd05359f2b89d4df59915d3b15ff..fd89ceaf1e0a55f49fd2b11511fe4536172b4f7e 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/common/CMSTemplate.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/common/CMSTemplate.java
@@ -574,21 +574,11 @@ public class CMSTemplate extends CMSFile {
             flush();
             return;
         }
-    
-        public void println(String s) throws IOException {
-            print(s);
-            write('\n');
-            flush();
-            return;
-        }
     }
 
 
     private class templateLine {
         private StringBuffer s = new StringBuffer();
-        void templateLine() {
-        }
-
         void println(String p) {
             s.append('\n');
             s.append(p);
diff --git a/pki/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java b/pki/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java
index 17a4bae660bb468aa0b9d1457c5c27674897093c..e18d86cf29c097b40214eda0c7be103aa8835db7 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/csadmin/DatabasePanel.java
@@ -1210,23 +1210,6 @@ public class DatabasePanel extends WizardPanelBase {
         context.put("panel", "admin/console/config/databasepanel.vm");
     }
 
-    private boolean isAgreementExist(String replicadn, LDAPConnection conn,
-      String name) {
-        String dn = "cn="+name+","+replicadn;
-        String filter = "(cn="+name+")";
-        String[] attrs = {"cn"};
-        try {
-            LDAPSearchResults results = conn.search(dn, LDAPv3.SCOPE_SUB,
-              filter, attrs, false);
-            while (results.hasMoreElements())
-                return true; 
-        } catch (LDAPException e) {
-            return false;
-        }
-
-        return false;
-    }
-
     private void createReplicationManager(LDAPConnection conn, String bindUser, String pwd)
       throws LDAPException {
         LDAPAttributeSet attrs = null;
diff --git a/pki/base/common/src/com/netscape/cms/servlet/csadmin/GetSubsystemCert.java b/pki/base/common/src/com/netscape/cms/servlet/csadmin/GetSubsystemCert.java
index 05882ad5912acb634834bb9ed1d4ea04be86fa96..bde35688614d825938ce18cb5ff8382147f5b7ae 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/csadmin/GetSubsystemCert.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/csadmin/GetSubsystemCert.java
@@ -126,22 +126,4 @@ public class GetSubsystemCert extends CMSServlet {
         }
         return locale;
     }
-
-    private String normalizeCertStr(String s) {
-        StringBuffer val = new StringBuffer();
-
-        for (int i = 0; i < s.length(); i++) {
-            if (s.charAt(i) == '\n') {
-                continue;
-            } else if (s.charAt(i) == '\r') {
-                continue;
-            } else if (s.charAt(i) == '"') {
-                continue;
-            } else if (s.charAt(i) == ' ') {
-                continue;
-            }
-            val.append(s.charAt(i));
-        }
-        return val.toString();
-    }
 }
diff --git a/pki/base/common/src/com/netscape/cms/servlet/request/QueryReq.java b/pki/base/common/src/com/netscape/cms/servlet/request/QueryReq.java
index 7a3d15de7e3e682491f636bf8f46b97eb3e89ba5..89f69581e14cd13d7b8f5089ae671fb6ba3bd8df 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/request/QueryReq.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/request/QueryReq.java
@@ -39,7 +39,6 @@ import com.netscape.certsrv.request.IRequest;
 import com.netscape.certsrv.request.IRequestQueue;
 import com.netscape.certsrv.request.IRequestVirtualList;
 import com.netscape.certsrv.request.RequestId;
-import com.netscape.certsrv.request.RequestStatus;
 import com.netscape.cms.servlet.base.CMSServlet;
 import com.netscape.cms.servlet.common.CMSRequest;
 import com.netscape.cms.servlet.common.CMSTemplate;
@@ -355,14 +354,6 @@ public class QueryReq extends CMSServlet {
     	return;
     }
 
-    private static String makeRequestStatusEq(RequestStatus s) {
-        return "(" + "requestState" + "=" + s + ")";
-    }
-
-    private static String makeRequestIdCmp(String op, int bound) {
-        return "(requestId" + op + bound + ")";
-    }
-
     /**
      * Perform search based on direction button pressed
      * @param filter ldap filter indicating which VLV to search through. This can be
diff --git a/pki/base/common/src/com/netscape/cms/servlet/tks/TokenServlet.java b/pki/base/common/src/com/netscape/cms/servlet/tks/TokenServlet.java
index 98d224af0bc7ba931abf3ff22911eb948853ad06..f7b8e8f5ca691707477aae33de4afe993a3a9da0 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/tks/TokenServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/tks/TokenServlet.java
@@ -23,7 +23,6 @@ import java.io.OutputStream;
 import java.security.PublicKey;
 import java.security.SecureRandom;
 import java.util.StringTokenizer;
-import java.util.Vector;
 
 import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
@@ -46,7 +45,6 @@ import com.netscape.certsrv.base.IPrettyPrintFormat;
 import com.netscape.certsrv.base.SessionContext;
 import com.netscape.certsrv.common.Constants;
 import com.netscape.certsrv.logging.ILogger;
-import com.netscape.certsrv.security.Credential;
 import com.netscape.certsrv.tks.ITKSAuthority;
 import com.netscape.cms.servlet.base.CMSServlet;
 import com.netscape.cms.servlet.common.CMSRequest;
@@ -1372,27 +1370,4 @@ public class TokenServlet extends CMSServlet {
 
         super.service(req, resp);
     }
-
-    /**
-     * Parses uid0=pwd0,uid1=pwd1,... into AgentCredential.
-     *
-     * @param s credential string
-     * @return a list of credentials
-     */
-    private Credential[] parseCredentialStr(String s) {
-        StringTokenizer st = new StringTokenizer(s, ",");
-        Vector v = new Vector();
-
-        while (st.hasMoreTokens()) {
-            String a = st.nextToken();
-            StringTokenizer st0 = new StringTokenizer(a, "=");
-
-            v.addElement(new Credential(st0.nextToken(),
-                    st0.nextToken()));
-        }
-        Credential ac[] = new Credential[v.size()];
-
-        v.copyInto(ac);
-        return ac;
-    }
 }
diff --git a/pki/base/common/src/com/netscape/cmscore/apps/CMSEngine.java b/pki/base/common/src/com/netscape/cmscore/apps/CMSEngine.java
index 92331a20d90aa606377620777f580d5ffd37a458..1ba71f65ed7db65f10f0a12cc6ac1294a1981139 100644
--- a/pki/base/common/src/com/netscape/cmscore/apps/CMSEngine.java
+++ b/pki/base/common/src/com/netscape/cmscore/apps/CMSEngine.java
@@ -1120,22 +1120,6 @@ public class CMSEngine implements ICMSEngine {
         mServerCertNickname = newName;
     }
 
-    private String lineParsing(String input, String newName) {
-        //<SSLPARAMS servercertnickname="Server-Cert cert-firefly"
-        int index = input.indexOf("servercertnickname");
-
-        if (index >= 0) {
-            String str = input.substring(index + 20);
-            int index2 = str.indexOf("\"");
-            String newLine = input.substring(0, index + 20)
-                + newName + str.substring(index2);
-
-            return newLine;
-        } else {
-            return input;
-        }
-    }
-
     public String getFingerPrint(Certificate cert)
         throws CertificateEncodingException, NoSuchAlgorithmException {
         return CertUtils.getFingerPrint(cert);
diff --git a/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java b/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java
index bf698ddadf02474abe336fe9df92ce55c52aa429..38901f3bede13196307548332a58d68fd8a059fb 100644
--- a/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java
+++ b/pki/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java
@@ -295,16 +295,6 @@ public class ChallengePhraseAuthentication implements IAuthManager {
         return authToken;
     }
 
-    private String getDecimalStr(String str) {
-        String newStr = str;
-
-        if (str.startsWith("0x") || str.startsWith("0X")) {
-            newStr = "" + Integer.parseInt(str.trim().substring(2), 16);
-        }
-  
-        return newStr;
-    }
-
     private boolean compareChallengePassword(CertRecord record, String pwd) 
         throws EBaseException {
         MetaInfo metaInfo = (MetaInfo) record.get(CertRecord.ATTR_META_INFO);
diff --git a/pki/base/common/src/com/netscape/cmscore/base/SimpleProperties.java b/pki/base/common/src/com/netscape/cmscore/base/SimpleProperties.java
index 98970df01de9d7bb20031449647cf1e1cee62e9a..1bd5bb35e039093d49aa90cbf329e3069ad67324 100644
--- a/pki/base/common/src/com/netscape/cmscore/base/SimpleProperties.java
+++ b/pki/base/common/src/com/netscape/cmscore/base/SimpleProperties.java
@@ -264,132 +264,6 @@ public class SimpleProperties extends Hashtable {
         return (slashCount % 2 == 1);
     }
 
-    /*
-     * Converts encoded \\uxxxx to unicode chars
-     * and changes special saved chars to their original forms
-     */
-    private String loadConvert(String theString) {
-        char aChar;
-        int len = theString.length();
-        StringBuffer outBuffer = new StringBuffer(len);
-
-        for (int x = 0; x < len;) {
-            aChar = theString.charAt(x++);
-            if (aChar == '\\') {
-                aChar = theString.charAt(x++);
-                if (aChar == 'u') {
-                    // Read the xxxx
-                    int value = 0;
-
-                    for (int i = 0; i < 4; i++) {
-                        aChar = theString.charAt(x++);
-                        switch (aChar) {
-                        case '0':
-                        case '1':
-                        case '2':
-                        case '3':
-                        case '4':
-                        case '5':
-                        case '6':
-                        case '7':
-                        case '8':
-                        case '9':
-                            value = (value << 4) + aChar - '0';
-                            break;
-
-                        case 'a':
-                        case 'b':
-                        case 'c':
-                        case 'd':
-                        case 'e':
-                        case 'f':
-                            value = (value << 4) + 10 + aChar - 'a';
-                            break;
-
-                        case 'A':
-                        case 'B':
-                        case 'C':
-                        case 'D':
-                        case 'E':
-                        case 'F':
-                            value = (value << 4) + 10 + aChar - 'A';
-                            break;
-
-                        default:
-                            throw new IllegalArgumentException(
-                                    "Malformed \\uxxxx encoding.");
-                        }
-                    }
-                    outBuffer.append((char) value);
-                } else {
-                    if (aChar == 't') aChar = '\t';
-                    else if (aChar == 'r') aChar = '\r';
-                    else if (aChar == 'n') aChar = '\n';
-                    else if (aChar == 'f') aChar = '\f';
-                    outBuffer.append(aChar);
-                }
-            } else
-                outBuffer.append(aChar);
-        }
-        return outBuffer.toString();
-    }
-
-    /*
-     * Converts unicodes to encoded \\uxxxx
-     * and writes out any of the characters in specialSaveChars
-     * with a preceding slash
-     */
-    private String saveConvert(String theString) {
-        char aChar;
-        int len = theString.length();
-        StringBuffer outBuffer = new StringBuffer(len * 2);
-
-        for (int x = 0; x < len;) {
-            aChar = theString.charAt(x++);
-            switch (aChar) {
-            case '\\':
-                outBuffer.append('\\');
-                outBuffer.append('\\');
-                continue;
-
-            case '\t':
-                outBuffer.append('\\');
-                outBuffer.append('t');
-                continue;
-
-            case '\n':
-                outBuffer.append('\\');
-                outBuffer.append('n');
-                continue;
-
-            case '\r':
-                outBuffer.append('\\');
-                outBuffer.append('r');
-                continue;
-
-            case '\f':
-                outBuffer.append('\\');
-                outBuffer.append('f');
-                continue;
-
-            default:
-                if ((aChar < 20) || (aChar > 127)) {
-                    outBuffer.append('\\');
-                    outBuffer.append('u');
-                    outBuffer.append(toHex((aChar >> 12) & 0xF));
-                    outBuffer.append(toHex((aChar >> 8) & 0xF));
-                    outBuffer.append(toHex((aChar >> 4) & 0xF));
-                    outBuffer.append(toHex((aChar >> 0) & 0xF));
-                } else {
-                    if (specialSaveChars.indexOf(aChar) != -1)
-                        outBuffer.append('\\');
-                    outBuffer.append(aChar);
-                }
-            }
-        }
-        return outBuffer.toString();
-    }
-
     /**
      * Calls the <code>store(OutputStream out, String header)</code> method
      * and suppresses IOExceptions that were thrown.
@@ -594,14 +468,6 @@ public class SimpleProperties extends Hashtable {
         }
     }
 
-    /**
-     * Convert a nibble to a hex character
-     * @param	nibble	the nibble to convert.
-     */
-    private static char toHex(int nibble) {
-        return hexDigit[(nibble & 0xF)];
-    }
-
     /** A table of hex digits */
     private static final char[] hexDigit = {
             '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
diff --git a/pki/base/common/src/com/netscape/cmscore/dbs/PublicKeyMapper.java b/pki/base/common/src/com/netscape/cmscore/dbs/PublicKeyMapper.java
index f55248eec017c2d6fa67516f4ae83e84a2eb28f8..8a2d1f2d2bdebd91df3fc48b70f51ef2144a5dc4 100644
--- a/pki/base/common/src/com/netscape/cmscore/dbs/PublicKeyMapper.java
+++ b/pki/base/common/src/com/netscape/cmscore/dbs/PublicKeyMapper.java
@@ -124,22 +124,6 @@ public class PublicKeyMapper implements IDBAttrMapper {
         return mLdapName + op + value;
     }
 
-    private String normalize(String s) {
-        String val = "";
-
-        for (int i = 0; i < s.length(); i++) {
-            if (s.charAt(i) == '\n') {
-                continue;
-            } else if (s.charAt(i) == '\r') {
-                continue;
-            } else if (s.charAt(i) == '"') {
-                continue;
-            }
-            val += s.charAt(i);
-        }
-        return val;
-    }
-
     public static String escapeBinaryData(byte data[]) {
         String result = "";
 
diff --git a/pki/base/common/src/com/netscape/cmscore/extensions/KeyUsage.java b/pki/base/common/src/com/netscape/cmscore/extensions/KeyUsage.java
index a5378ced39ae569c00ff0fe7b76e129afbb9c092..9b8e16cf6e2d5cf6a42f9189943bd7d8e0c66bf9 100644
--- a/pki/base/common/src/com/netscape/cmscore/extensions/KeyUsage.java
+++ b/pki/base/common/src/com/netscape/cmscore/extensions/KeyUsage.java
@@ -231,9 +231,5 @@ public class KeyUsage implements ICMSExtension {
         return params;
     }
 
-    private void log(int level, String msg) {
-        mLogger.log(ILogger.EV_SYSTEM, ILogger.S_OTHER, level, msg);
-    }
-
 }
 
diff --git a/pki/base/common/src/com/netscape/cmscore/policy/GenericPolicyProcessor.java b/pki/base/common/src/com/netscape/cmscore/policy/GenericPolicyProcessor.java
index 95d668283e4b452af90a6867c29ef94c8a26605c..cdfb7025c70fe20c78222bab4939a3f556948152 100644
--- a/pki/base/common/src/com/netscape/cmscore/policy/GenericPolicyProcessor.java
+++ b/pki/base/common/src/com/netscape/cmscore/policy/GenericPolicyProcessor.java
@@ -458,19 +458,6 @@ public class GenericPolicyProcessor implements IPolicyProcessor {
         return mAuthority.getId() + ".Policy";
     }
 
-    private void setError(IRequest req, String format, String arg) {
-        if (format == null)
-            return;
-        EPolicyException ex = new EPolicyException(format, arg);
-
-        Vector ev = req.getExtDataInStringVector(IRequest.ERRORS);
-        if (ev == null) {
-            ev = new Vector();
-        }
-        ev.addElement(ex.toString());
-        req.setExtData(IRequest.ERRORS, ev);
-    }
-
     public Enumeration getPolicyImpls() {
         Vector impls = new Vector();
         Enumeration enum1 = mImplTable.elements();
diff --git a/pki/base/common/src/com/netscape/cmscore/util/OsSubsystem.java b/pki/base/common/src/com/netscape/cmscore/util/OsSubsystem.java
index 47bb62801715a9dc6a52ce5a0ece113dc5a69552..05118b9ea6b223ef01838af74c1c290636505c88 100644
--- a/pki/base/common/src/com/netscape/cmscore/util/OsSubsystem.java
+++ b/pki/base/common/src/com/netscape/cmscore/util/OsSubsystem.java
@@ -32,7 +32,6 @@ import com.netscape.certsrv.logging.ILogger;
 import com.netscape.cmscore.base.SubsystemRegistry;
 import com.netscape.osutil.LibC;
 import com.netscape.osutil.OSUtil;
-import com.netscape.osutil.ResourceLimit;
 import com.netscape.osutil.Signal;
 import com.netscape.osutil.SignalListener;
 import com.netscape.osutil.UserID;
@@ -174,42 +173,6 @@ public final class OsSubsystem implements ISubsystem {
     }
 
     /**
-     * Hooks up unix signals.
-     */
-    private void initUnix() throws EBaseException {
-        // Set up signal handling.  We pretty much exit on anything
-        // Signal.watch(Signal.SIGHUP); 
-        // Signal.watch(Signal.SIGTERM);
-        // Signal.watch(Signal.SIGINT);
-        // mSignalThread = new SignalThread();
-        // mSignalThread.setDaemon(true);
-        // mSignalThread.start();
-
-        Signal.addSignalListener(Signal.SIGHUP, new SIGHUPListener(this)); 
-        Signal.addSignalListener(Signal.SIGTERM, new SIGTERMListener(this)); 
-        Signal.addSignalListener(Signal.SIGINT, new SIGINTListener(this)); 
-
-        /* Increase the maximum number of file descriptors */
-        int i = mConfig.getInteger("maxFiles", 
-                ResourceLimit.getHardLimit(ResourceLimit.RLIMIT_NOFILE));
-
-        ResourceLimit.setLimits(ResourceLimit.RLIMIT_NOFILE,
-            i, ResourceLimit.getHardLimit(ResourceLimit.RLIMIT_NOFILE));
-
-        // write current pid to specified file
-        String pf = mConfig.getString("pidFile", null);
-
-        if (pf == null) {
-            return; // development environment does not rely on this
-        }
-        File pidFile = new File(pf);
-
-        if (pidFile.exists()) {
-            throw new EBaseException(CMS.getUserMessage("CMS_BASE_PID_EXIST"));
-        }
-    }
-
-    /**
      * Used to change the process user id usually called after the appropriate 
      * network ports have been opened.
      */
@@ -344,24 +307,6 @@ public final class OsSubsystem implements ISubsystem {
     }
 
     /**
-     * Unix restart
-     * <P>
-     */
-    private void restartUnix() {
-        // Tell watch dog to restart us
-        int ppid = LibC.getppid();
-
-        Signal.send(ppid, Signal.SIGHUP);
-    }
-
-    /**
-     * NT restart
-     * <P>
-     */
-    private void restartNT() {
-    }
-
-    /**
      * Returns the root configuration storage of this system.
      * <P>
      *
diff --git a/pki/base/java-tools/src/com/netscape/cmstools/PasswordCache.java b/pki/base/java-tools/src/com/netscape/cmstools/PasswordCache.java
index f914fab74db084d627c2c4ebacccd8d16a9c558e..cd0351ae48275ed22597a634014dfa8b143fc830 100644
--- a/pki/base/java-tools/src/com/netscape/cmstools/PasswordCache.java
+++ b/pki/base/java-tools/src/com/netscape/cmstools/PasswordCache.java
@@ -335,24 +335,6 @@ public class PasswordCache {
             System.exit(1);
         }
     }
-
-    private static boolean badPassword(String pwd) {
-       // XXX - implement only password checking
-       return false;
-/*
-        PasswordChecker pwdChecker = new PasswordChecker();
-
-        if (!pwdChecker.isGoodPassword(pwd)) {
-            String reason = pwdChecker.getReason(pwd);
-
-            System.out.println("New password does not pass password " +
-                "quality test: " + reason);
-            return true;
-        } else {
-            return false;
-        }
-*/
-    }
 }
 
 
diff --git a/pki/base/kra/src/com/netscape/kra/EnrollmentService.java b/pki/base/kra/src/com/netscape/kra/EnrollmentService.java
index 397793bfcdefbc4c303c074ecc20b705580cdf2f..6415e190351dfba082e3ca5ac58777f5b1b55084 100644
--- a/pki/base/kra/src/com/netscape/kra/EnrollmentService.java
+++ b/pki/base/kra/src/com/netscape/kra/EnrollmentService.java
@@ -855,43 +855,6 @@ public class EnrollmentService implements IService {
     }
 
     /**
-     * Signed Audit Log Recovery ID
-     *
-     * This method is called to obtain the "RecoveryID" for
-     * a signed audit log message.
-     * <P>
-     *
-     * @return id string containing the signed audit log message RecoveryID
-     */
-    private String auditRecoveryID() {
-        // if no signed audit object exists, bail
-        if (mSignedAuditLogger == null) {
-            return null;
-        }
-
-        String recoveryID = null;
-
-        // Initialize recoveryID
-        SessionContext auditContext = SessionContext.getExistingContext();
-
-        if (auditContext != null) {
-            recoveryID = (String)
-                    auditContext.get(SessionContext.RECOVERY_ID);
-
-            if (recoveryID != null) {
-                recoveryID = recoveryID.trim();
-            } else {
-                recoveryID = ILogger.UNIDENTIFIED;
-            }
-        } else {
-            recoveryID = ILogger.UNIDENTIFIED;
-        }
-
-        return recoveryID;
-    }
-
-    
-    /**
      * Signed Audit Log
      *
      * This method is called to store messages to the signed audit log.
diff --git a/pki/base/silent/src/argparser/StringScanner.java b/pki/base/silent/src/argparser/StringScanner.java
index 425ad3ac12c8f6a574c2c69bfb439f9de0c288d4..606dbd67018e455d933679ba196bcc162e02008d 100644
--- a/pki/base/silent/src/argparser/StringScanner.java
+++ b/pki/base/silent/src/argparser/StringScanner.java
@@ -576,14 +576,6 @@ class StringScanner
 	    }
 	 }
 
-	private int skipWhiteSpace(int k)
-	 {
-	   while (Character.isWhitespace(buf[k]))
-	    { k++;
-	    }
-	   return k;
-	 }
-
 	public boolean atEnd()
 	 {
 	   return idx == len;
diff --git a/pki/base/silent/src/ca/UserEnroll.java b/pki/base/silent/src/ca/UserEnroll.java
index fee2532e87e54389a6c827cdb0976e227a315a29..82c374ae759c16f9574633a32a372b4a7364ace7 100644
--- a/pki/base/silent/src/ca/UserEnroll.java
+++ b/pki/base/silent/src/ca/UserEnroll.java
@@ -152,10 +152,6 @@ public class UserEnroll extends TestClient {
         certType = ct;
     }
 
-    private long getElapsedTime() {
-        return elapsedTime;
-    }
-
     public boolean enroll_load() {
         buildquery();
         setStatusString("");
diff --git a/pki/base/silent/src/ca/checkRequest.java b/pki/base/silent/src/ca/checkRequest.java
index 41cd2d70cc7acc0a4e7829fe192ec15dbd05168d..70c788c8e37378aaf1e85a260937262dd79e31d6 100644
--- a/pki/base/silent/src/ca/checkRequest.java
+++ b/pki/base/silent/src/ca/checkRequest.java
@@ -150,10 +150,6 @@ public class checkRequest extends TestClient {
         return reqStatus;
     }
 
-    private long getElapsedTime() {
-        return elapsedTime;
-    }
-
     /**
      * returns the  hex serial number of the certificate 
      **/
@@ -236,17 +232,7 @@ public class checkRequest extends TestClient {
         return false;
     }
 
-    private boolean checkRequest_load() {
-
-        type = 1;
-        buildquery();
-        if (debug) {
-            System.out.println(query);
-        }
-        setStatusString("Congratulations, your certificate has been issued");
-        return(Send());
-
-    }
+    
 
     // Private functions 
 
diff --git a/pki/base/silent/src/common/AutoInstaller.java b/pki/base/silent/src/common/AutoInstaller.java
index c343a6918611411ad8cdc71526129c8878bd4b4a..0ca86b4bee8ffa7727127f801c4beb5b4b9eafe9 100644
--- a/pki/base/silent/src/common/AutoInstaller.java
+++ b/pki/base/silent/src/common/AutoInstaller.java
@@ -746,60 +746,6 @@ public class AutoInstaller {
 
     }
 
-    private boolean taskCloneMaster() {
-        System.out.println("configuring Cert Instance : taskCloneMaster");
-        setConfigURL();
-        String myStringUrl = "http://" + host + ":" + adminPort + configURL;
-
-        System.out.println(myStringUrl);
-        String query = "serverRoot=" + URLEncoder.encode(serverRoot);
-
-        query += "&";
-        query += "&claPortnumEE=" + URLEncoder.encode(caEEPort);
-        query += "&claPortnum=" + URLEncoder.encode(caAgentPortnum);
-        query += "&claHostname=" + URLEncoder.encode(caHostname);
-        query += "&ra=false";
-        query += "&ca=true";
-        query += "&kra=false";
-        query += "&subsystems=ca";
-        query += "&cloning=true";
-        query += "&cloningInstance=" + URLEncoder.encode(cloneInstanceId); 
-        query += "&claTimeout=" + URLEncoder.encode("60");
-        query += "&internaldb.ldapauth.bindDN="
-                + URLEncoder.encode(dbLDAPauthDN);
-        query += "&AdminUserPassword=" + URLEncoder.encode(adminPWD);
-        query += "&db.password=" + URLEncoder.encode(dbPassword);
-        query += "&instanceID=" + URLEncoder.encode(instanceID);
-        query += "&opType=" + URLEncoder.encode("OP_MODIFY");
-        query += "&taskID=" + URLEncoder.encode("taskCloneMaster");
-        query += "&cmsSeed=0";
-        setPostQueryString(query);
-        return Connect(myStringUrl);
-    }
-
-    private boolean taskCloning() {
-        System.out.println("configuring Cert Instance : taskCloning");
-        setConfigURL();
-        String myStringUrl = "http://" + host + ":" + adminPort + configURL;
-
-        System.out.println(myStringUrl);
-        String query = "serverRoot=" + URLEncoder.encode(serverRoot);
-
-        query += "&";
-        query += "&cloneTokenPasswd=" + URLEncoder.encode(dbPassword);
-        query += "&cloneTokenName=" + URLEncoder.encode("internal");
-        query += "&cloningInstance=" + URLEncoder.encode(cloneInstanceId);
-        query += "&cloneSameMachine=true";
-        query += "&AdminUserPassword=" + URLEncoder.encode(adminPWD);
-        query += "&certType=" + URLEncoder.encode(certType);
-        query += "&instanceID=" + URLEncoder.encode(instanceID);
-        query += "&opType=" + URLEncoder.encode("OP_MODIFY");
-        query += "&taskID=" + URLEncoder.encode("taskCloning");
-        query += "&cmsSeed=0";
-        setPostQueryString(query);
-        return Connect(myStringUrl);
-    }
-
     private boolean setSerial(String start, String end) {
         System.out.println("configuring Cert Instance : setCASerial");
         setConfigURL();
@@ -870,25 +816,6 @@ public class AutoInstaller {
 
     }
 
-    private boolean serverMigration() {
-        System.out.println("configuring Cert Instance : Server migration");
-        setConfigURL();
-        String myStringUrl = "http://" + host + ":" + adminPort + configURL;
-
-        System.out.println(myStringUrl);
-        String query = "AdminUserPassword=" + URLEncoder.encode(adminPWD);
-
-        query += "&";
-        query += "instanceID=" + URLEncoder.encode(instanceID);
-        query += "&migrationEnable=" + URLEncoder.encode("false");
-        query += "&opType=" + URLEncoder.encode("OP_MODIFY");
-        query += "&taskID=" + URLEncoder.encode("migration");
-        query += "&cmsSeed=0";
-        setPostQueryString(query);
-        return Connect(myStringUrl);
-
-    }
-
     private boolean initializePWD() {
         System.out.println("configuring Cert Instance : Initialize token");
         setConfigURL();
@@ -1568,32 +1495,6 @@ public class AutoInstaller {
         return Connect(myStringUrl);
     }
 
-    private boolean setupKRAAgents() {
-        System.out.println("configuring Cert Instance :  KRA Agents");
-        setConfigURL();
-        String myStringUrl = "http://" + host + ":" + adminPort + configURL;
-
-        System.out.println(myStringUrl);
-        String query = "AdminUserPassword=" + URLEncoder.encode(adminPWD);
-
-        query += "&";
-        query += "instanceID=" + URLEncoder.encode(instanceID);
-        query += "&serverRoot=" + URLEncoder.encode(serverRoot);
-        query += "&opType=" + URLEncoder.encode("OP_MODIFY");
-        query += "&taskID=" + URLEncoder.encode("agents");
-        query += "&n=" + URLEncoder.encode("3");
-        query += "&m=" + URLEncoder.encode("2");
-        query += "&uid2=" + URLEncoder.encode("agent3");
-        query += "&uid0=" + URLEncoder.encode("agent1");
-        query += "&uid1=" + URLEncoder.encode("agent2");
-        query += "&pwd1=" + URLEncoder.encode("netscape");
-        query += "&pwd2=" + URLEncoder.encode("netscape");
-        query += "&pwd0=" + URLEncoder.encode("netscape");
-        query += "&cmsSeed=0";
-        setPostQueryString(query);
-        return Connect(myStringUrl);
-    }
-
     private boolean ConfRA() {
         // Start Configuring 
 
@@ -2228,116 +2129,6 @@ public class AutoInstaller {
 
     // Configure Clone 
 
-    private boolean ConfClone() {
-        // Start Configuring
-
-        // Step 1. Start Deamon
-
-        if (!startDeamon()) {
-            System.out.println(
-                    "Configuring Cert Instance: Unable to start deamon");
-            return false;
-        }
-
-        // Sometimes it takes time to start deamon so wait for few seconds
-        try {
-            System.out.println("going to sleep for 10 seconds");
-            Thread.sleep(10000);
-        } catch (InterruptedException ie) {
-            System.out.println("sleep exection");
-        }
-
-        // Step 1a: Initialize Token ( Changed in 6.0)jjj
-        if (!initializePWD()) {
-            System.out.println(
-                    "Configuring Cert Instance: error initializing pwd token");
-            return false;
-        }
-
-        // Step 2. Configure Internal DB
-        if (!configInternalDB()) {
-            System.out.println(
-                    "Configuring Cert Instance: error configuring internal db");
-            return false;
-        }
-
-        // Step 3. Create Admin Values
-        if (!createAdminValues()) {
-            System.out.println(
-                    "Configuring Cert Instance: error configuring admin values ");
-            return false;
-        }
-
-        // Step 4. SubSystems
-
-        if (!selectSubSystem()) {
-            System.out.println(
-                    "Configuring Cert Instance: error selecting subsystems");
-            return false;
-        }
-
-        // Step 5. SetCASerial
-        if (!setSerial("1000000", "2000000")) {
-            System.out.println("Configuring Cert Instance: error setSerial");
-            return false;
-        }
-
-        if (!setOCSP()) {
-            System.out.println("Configuring Cert Instance: error setOCSP");
-            return false;
-        }
-
-        // Step 5. Network Configuration
-        if (!networkConfig()) {
-            System.out.println(
-                    "Configuring Cert Instance: error configuring network ports ");
-            return false;
-        }
-
-        if (!taskCloning()) {
-            System.out.println("Configuring Cert Instance: error Task Cloning ");
-            return false;
-        }
-
-        if (!taskCloneMaster()) {
-            System.out.println(
-                    "Configuring Cert Instance: error configuring network ports ");
-            return false;
-        }
-
-        // Create a SSL signing cert
-        certType = "serverCert";
-
-        if (!taskCloning()) {
-            System.out.println("Configuring Cert Instance: error Task Cloning ");
-            return false;
-        }
-
-        // Step 11 
-        if (!singleSignON()) {
-            System.out.println(
-                    "Configuring Cert Instance: error setting up singlesignon");
-            return false;
-        }
-
-        // Step 11 
-        if (!doMisc()) {
-            System.out.println(
-                    "Configuring Cert Instance: error setting up miscell");
-            return false;
-        }
-
-        // Step 12 
-        if (!exitDeamon()) {
-            System.out.println(
-                    "Configuring Cert Instance: Unable to exit deamon");
-            return false;
-        }
-
-        return true;
-
-    }
-
     public boolean readProperties() {
         // Read the properties file and assign values to variables .
         try {
diff --git a/pki/base/silent/src/common/CMSConfig.java b/pki/base/silent/src/common/CMSConfig.java
index 4d29cb8b0f6781dca0c50dda725423c8371c9662..57f8443a614fee67f7e4c9b50d78c86cb83da7ea 100644
--- a/pki/base/silent/src/common/CMSConfig.java
+++ b/pki/base/silent/src/common/CMSConfig.java
@@ -39,20 +39,6 @@ public class CMSConfig extends ServerInfo {
         readCMSConfig();
     }
 
-    private void getProperties(String filePath) throws Exception {
-        try {
-            FileInputStream fis = new FileInputStream(filePath);
-
-            props = new CMSProperties();
-            props.load(fis);
-            System.out.println("Reading Properties file successful");
-            fis.close();
-        } catch (Exception e) {
-            System.out.println("exception " + e.getMessage());
-        }
-
-    }
-
     private void readCMSConfig() {
 
         try {
@@ -516,51 +502,6 @@ public class CMSConfig extends ServerInfo {
         CMSprops.setProperty("cardcryptogram.validate.enable", "false");
     }
 
-    private void ARLOn() {
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.critical",
-                "true");
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.enable",
-                "true");
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.indirectCRL",
-                "false");
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.onlyContainsCACerts",
-                "true");
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.onlyContainsUserCerts",
-                "false");
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.onlySomeReasons",
-                null);
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.pointName",
-                null);
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.pointType",
-                "DirectoryName");
-        CMSprops.setProperty(
-                "ca.crl.MasterCRL.extension.IssuingDistributionPoint.type",
-                "CRLExtension");
-        CMSprops.setProperty("ca.crl.MasterCRL.allowExtensions", "true");
-        CMSprops.setProperty("ca.crl.MasterCRL.alwaysUpdate", "true");
-        CMSprops.setProperty("ca.crl.MasterCRL.autoUpdateInterval", "5");
-        CMSprops.setProperty("ca.crl.MasterCRL.caCertsOnly", "true");
-        CMSprops.setProperty("ca.crl.MasterCRL.cacheUpdateInterval", "5");
-        CMSprops.setProperty("ca.crl.MasterCRL.class",
-                "com.netscape.cmscore.ca.CRLIssuingPoint");
-
-        CMSprops.setProperty("ca.crl.MasterCRL.description",
-                "CA's complete Certificate Revocation List");
-        CMSprops.setProperty("ca.crl.MasterCRL.enableCRLCache", "true");
-        CMSprops.setProperty("ca.crl.MasterCRL.includeExpiredCerts", "true");
-        CMSprops.setProperty("ca.crl.MasterCRL.nextUpdateSkew", "5");
-        CMSprops.setProperty("ca.crl.MasterCRL.signingAlgorithm", "SHA1withRSA");
-
-    }
-
     // Policies 
     public void DefaultValidityRule(String SubsystemType, String lagtime, String leadtime, String maxValidity) {
         if (SubsystemType.equals("ca")) {
diff --git a/pki/base/silent/src/common/CMSLDAP.java b/pki/base/silent/src/common/CMSLDAP.java
index b7f678064c1936fe6c47f3a8fb4ebbe55933e380..bc4ab1bb1cb3fa891409d56377f1a1e051ba76cc 100644
--- a/pki/base/silent/src/common/CMSLDAP.java
+++ b/pki/base/silent/src/common/CMSLDAP.java
@@ -97,17 +97,6 @@ public class CMSLDAP {
 
     }
 
-    private boolean RemoveInstance(String basedn) {
-        try {
-            conn.delete(basedn);
-            return true;
-        } catch (Exception e) {
-            System.out.println("ERROR: " + e.toString());
-            return false;
-        }
-
-    }
-
     /**
      * Search for certificaterevocationList attribute. Takes basedn and filter as parameters
      */ 
diff --git a/pki/base/silent/src/common/ServerInfo.java b/pki/base/silent/src/common/ServerInfo.java
index e9d96cd4c49b861965b2ddeb279b6cd4f8d7b097..481cf1eff63d274f756131a2a418f7ffbe978956 100644
--- a/pki/base/silent/src/common/ServerInfo.java
+++ b/pki/base/silent/src/common/ServerInfo.java
@@ -251,20 +251,6 @@ public class ServerInfo {
         }
     } 
 
-    private void getProperties(String filePath) throws Exception {
-        try {
-            FileInputStream fis = new FileInputStream(filePath);
-
-            props = new CMSProperties();
-            props.load(fis);
-            System.out.println("Reading Properties file successful");
-            fis.close();
-        } catch (Exception e) {
-            System.out.println("exception " + e.getMessage());
-        }
-
-    }
-
     private String stripSpace(String s) {
 
         String val = "";
diff --git a/pki/base/silent/src/common/TestClient.java b/pki/base/silent/src/common/TestClient.java
index 266a125d2dbecb4ab74f503a1d3f108b1c9a6622..4911f297c4d3f70be3d378a9ea06f0718201f7c7 100644
--- a/pki/base/silent/src/common/TestClient.java
+++ b/pki/base/silent/src/common/TestClient.java
@@ -18,10 +18,8 @@
 
 import java.io.BufferedReader;
 import java.io.FileInputStream;
-import java.io.IOException;
 import java.io.InputStreamReader;
 import java.net.ServerSocket;
-import java.net.Socket;
 import java.util.Properties;
 
 import org.mozilla.jss.crypto.X509Certificate;
@@ -466,20 +464,6 @@ public class TestClient implements SSLCertificateApprovalCallback {
         return s;
     }
 
-    private static boolean isSocketUnused(String h, int p) {
-
-        try {
-
-            Socket ss = new Socket(h, p);
-
-            ss.close();
-            return false;
-
-        } catch (IOException e) {
-            return true;
-        }
-    }
-
     /**
      * returns FreePort in this machine . Takes a parmater portnumber. For example getFreePort("4026"). 
      */
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/CertID.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/CertID.java
index 29fbc4e873afd1012f389b618e03eb66663c1ddb..3c563d9396f8fd687da1526b317eb4dd23fe9592 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/CertID.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/CertID.java
@@ -78,7 +78,6 @@ public class CertID implements ASN1Value
 	///////////////////////////////////////////////////////////////////////
 	// Constructors
 	///////////////////////////////////////////////////////////////////////
-	private CertID() { }
 
 	public CertID(AlgorithmIdentifier hashAlgorithm,
 		OCTET_STRING issuerNameHash, OCTET_STRING issuerKeyHash,
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPRequest.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPRequest.java
index 98f50e7efb364f471e39aaf03eb84c41998478eb..ea2e54221fe1afc9590239befab12f86f7a8f864 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPRequest.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPRequest.java
@@ -65,11 +65,7 @@ public class OCSPRequest implements ASN1Value
 	{
 		return optionalSignature;
 	}
-
-	///////////////////////////////////////////////////////////////////////
-	// Constructors
-	///////////////////////////////////////////////////////////////////////
-	private OCSPRequest() { }
+	
 
 	/* THIS code is probably broken. It does not properly encode the explicit element */
        
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponse.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponse.java
index 67f6242c50d0077d2076c8f55c8a2acf08c4dfe6..d8635fe2a47e9e3c068b84692867c6b6774acac3 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponse.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponse.java
@@ -58,11 +58,6 @@ public class OCSPResponse implements ASN1Value
 		return responseBytes;
 	}
 
-	///////////////////////////////////////////////////////////////////////
-	// Constructors
-	///////////////////////////////////////////////////////////////////////
-	private OCSPResponse() { }
-
 	public OCSPResponse(OCSPResponseStatus responseStatus,
 		ResponseBytes responseBytes)
 	{
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponseStatus.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponseStatus.java
index ee2b62020c7d7ec0e4be18af6ee0b1b176736785..145fbe7d07206fa6935b6110ba42c9ca8032bc79 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponseStatus.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/OCSPResponseStatus.java
@@ -69,11 +69,6 @@ public class OCSPResponseStatus implements ASN1Value
 		return responseStatus.getValue();
 	}
 
-	///////////////////////////////////////////////////////////////////////
-	// Constructors
-	///////////////////////////////////////////////////////////////////////
-	private OCSPResponseStatus() { }
-
 	public OCSPResponseStatus(long val)
 	{
 		responseStatus = new ENUMERATED(val);
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/Request.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/Request.java
index f180709deb28db3299ed9f7b8322be02545a956c..9f277bb9683e6da571330bd73a6161eb5414f475 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/Request.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/Request.java
@@ -72,11 +72,6 @@ public class Request implements ASN1Value
 			return (Extension) singleRequestExtensions.elementAt(index);
 	}
 
-	///////////////////////////////////////////////////////////////////////
-	// constructors
-	///////////////////////////////////////////////////////////////////////
-	private Request() { }
-
 	public Request(CertID reqCert, SEQUENCE singleRequestExtensions)
 	{
   		sequence = new SEQUENCE();
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/ResponseBytes.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/ResponseBytes.java
index 80a15b910fe4b205c4c020ff6b4497deceb15411..b5fed0d9f8be843825bbcaa0ccec7455942d3f48 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/ResponseBytes.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/ResponseBytes.java
@@ -64,11 +64,6 @@ public class ResponseBytes implements ASN1Value
 		return response;
 	}
 
-	///////////////////////////////////////////////////////////////////////
-	// Constructors
-	///////////////////////////////////////////////////////////////////////
-	private ResponseBytes() { }
-
 	public ResponseBytes(OBJECT_IDENTIFIER responseType, OCTET_STRING response)
 	{
 		sequence = new SEQUENCE();
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/Signature.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/Signature.java
index 2810182e16a7b99c2eeeb13df2cf0c0bbeabccf7..d670dfe237e24b3d0ba5917638590b8b710bad6c 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/Signature.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/Signature.java
@@ -81,11 +81,6 @@ public class Signature implements ASN1Value
 			return (Certificate) certs.elementAt(index);
 	}
 
-	///////////////////////////////////////////////////////////////////////
-	// constructors
-	///////////////////////////////////////////////////////////////////////
-	private Signature() { }
-
 	public Signature(AlgorithmIdentifier signatureAlgorithm,
 		BIT_STRING signature, SEQUENCE certs)
 	{
diff --git a/pki/base/util/src/com/netscape/cmsutil/ocsp/TBSRequest.java b/pki/base/util/src/com/netscape/cmsutil/ocsp/TBSRequest.java
index 4e09c5914c8d397cde43e43eee3f9788b2c16c51..ea23200dba236f8b1bca5a86bc0c0669e1fa1f77 100644
--- a/pki/base/util/src/com/netscape/cmsutil/ocsp/TBSRequest.java
+++ b/pki/base/util/src/com/netscape/cmsutil/ocsp/TBSRequest.java
@@ -98,8 +98,6 @@ public class TBSRequest implements ASN1Value
     // constructors
     ///////////////////////////////////////////////////////////////////////
     
-    private TBSRequest() {}
-
     public TBSRequest(INTEGER version, ANY requestorName,
         SEQUENCE requestList, SEQUENCE requestExtensions)
     {
diff --git a/pki/base/util/src/netscape/security/extensions/OCSPNoCheckExtension.java b/pki/base/util/src/netscape/security/extensions/OCSPNoCheckExtension.java
index 1010ca26276c28c7fe4540862976945a1d5b072e..586a699666a9d20aea6af0f8be7d9cab9000dae3 100644
--- a/pki/base/util/src/netscape/security/extensions/OCSPNoCheckExtension.java
+++ b/pki/base/util/src/netscape/security/extensions/OCSPNoCheckExtension.java
@@ -93,13 +93,6 @@ public class OCSPNoCheckExtension extends Extension implements CertAttrSet {
         }
     }
     
-    private void encodeThis(DerOutputStream out) throws IOException {
-        if (mCached == null) {
-            super.encode(out);
-            mCached = out.toByteArray();
-        }
-    }
-    
     public String toString() {
         String presentation = "oid=" + OID + " ";
 
diff --git a/pki/base/util/src/netscape/security/pkcs/PKCS8Key.java b/pki/base/util/src/netscape/security/pkcs/PKCS8Key.java
index dfa5a728d7066f2b88123187a6ca0bdf01571cd5..91bb8b4708dab0f2747ce452734f73f2cc45cc34 100644
--- a/pki/base/util/src/netscape/security/pkcs/PKCS8Key.java
+++ b/pki/base/util/src/netscape/security/pkcs/PKCS8Key.java
@@ -69,18 +69,6 @@ public class PKCS8Key implements PrivateKey {
      */
     public PKCS8Key() { }
 
-    /*
-     * Build and initialize as a "default" key.  All PKCS#8 key
-     * data is stored and transmitted losslessly, but no knowledge
-     * about this particular algorithm is available.
-     */
-    private PKCS8Key (AlgorithmId algid, byte key [])
-    throws InvalidKeyException {
-	this.algid = algid;
-	this.key = key;
-	encode();
-    }
-
     /**
      * Construct PKCS#8 subject public key from a DER value.  If
      * the runtime environment is configured with a specific class for
diff --git a/pki/base/util/src/netscape/security/provider/DSA.java b/pki/base/util/src/netscape/security/provider/DSA.java
index a40bd02950a6c05be4878d06244c0a7e2e8154fb..9fa5b9f6c5ce17536b11a2d6cacf7d7f86293cfc 100644
--- a/pki/base/util/src/netscape/security/provider/DSA.java
+++ b/pki/base/util/src/netscape/security/provider/DSA.java
@@ -20,8 +20,6 @@ package netscape.security.provider;
 import java.io.IOException;
 import java.io.PrintStream;
 import java.math.BigInteger;
-import java.security.AlgorithmParameters;
-import java.security.InvalidAlgorithmParameterException;
 import java.security.InvalidKeyException;
 import java.security.InvalidParameterException;
 import java.security.MessageDigest;
@@ -32,8 +30,6 @@ import java.security.SecureRandom;
 import java.security.Signature;
 import java.security.SignatureException;
 import java.security.interfaces.DSAParams;
-import java.security.spec.DSAParameterSpec;
-import java.security.spec.InvalidParameterSpecException;
 
 import netscape.security.util.BigInt;
 import netscape.security.util.DerInputStream;
@@ -143,20 +139,6 @@ public final class DSA extends Signature {
 	setParams(params);
     }
 
-    private void initialize(AlgorithmParameters params)
-	throws InvalidAlgorithmParameterException {
-	    try {
-		DSAParameterSpec dsaParamSpec;
-		dsaParamSpec = (DSAParameterSpec)params.getParameterSpec
-		    (DSAParameterSpec.class);
-		dataSHA.reset();
-		setParams(dsaParamSpec);
-	    } catch (InvalidParameterSpecException e) {
-		throw new InvalidAlgorithmParameterException
-		    ("Inappropriate parameter");
-	    }
-    }
-
     /**
      * Sign all the data thus far updated. The signature is formatted
      * according to the Canonical Encoding Rules, returned as a DER
@@ -228,10 +210,6 @@ public final class DSA extends Signature {
 	return v.equals(r);
     }
 
-    private void reset() {
-	dataSHA.reset();
-    }
-
     BigInteger generateR(BigInteger p, BigInteger q, BigInteger g,
 			 BigInteger k) {
 	BigInteger temp = g.modPow(k, p);
@@ -510,12 +488,6 @@ public final class DSA extends Signature {
 	this.presetG = params.getG();
     }
 
-    private void setParams(DSAParameterSpec params) {
-	this.presetP = params.getP();
-	this.presetQ = params.getQ();
-	this.presetG = params.getG();
-    }
-    
     /**
      * Update a byte to be signed or verified.
      *
@@ -670,12 +642,6 @@ public final class DSA extends Signature {
 
     /* End test vector values */
 
-    private static void debug(Exception e) {
-	if (debug) {
-	    e.printStackTrace();
-	}
-    }
-
     private static void debug(String s) {
 	if (debug) {
 	    System.err.println(s);
diff --git a/pki/base/util/src/netscape/security/provider/MD5.java b/pki/base/util/src/netscape/security/provider/MD5.java
index a3c12490df81365cea62bcff96d34187818c7f3f..a6adaac20c81515a142126c2d2b8e0fe7e092b7f 100644
--- a/pki/base/util/src/netscape/security/provider/MD5.java
+++ b/pki/base/util/src/netscape/security/provider/MD5.java
@@ -69,14 +69,7 @@ public final class MD5 extends MessageDigestSpi implements Cloneable {
 	init();
     }
 
-    private MD5(MD5 md5) {
-	this();
-	this.state = (int[])md5.state.clone();
-	this.transformBuffer = (int[])md5.transformBuffer.clone();
-	this.buffer = (byte[])md5.buffer.clone();
-	this.digestBits = (byte[])md5.digestBits.clone();
-	this.count = md5.count;
-    }
+    
 
     /* **********************************************************
      * The MD5 Functions. These are copied verbatim from
diff --git a/pki/base/util/src/netscape/security/provider/SHA.java b/pki/base/util/src/netscape/security/provider/SHA.java
index 2e5ac328eaed912a840ccda6984551ca4821d353..6e4bf51e7f4743ec7450059ae097c8797f11bcb9 100644
--- a/pki/base/util/src/netscape/security/provider/SHA.java
+++ b/pki/base/util/src/netscape/security/provider/SHA.java
@@ -56,20 +56,6 @@ public class SHA extends MessageDigestSpi implements Cloneable {
 
     private int AA, BB, CC, DD, EE;
 
-    /**
-     * Creates a SHA object.with state (for cloning) */
-    private SHA(SHA sha) {
-	this();
-	this.version = sha.version;
-	System.arraycopy(sha.W, 0, this.W, 0, W.length);
-	this.count = sha.count;
-	this.AA = sha.AA;
-	this.BB = sha.BB;
-	this.CC = sha.CC;
-	this.DD = sha.DD;
-	this.EE = sha.EE;
-    }
-    
     SHA(int version) {
 	this();
 	this.version = version;
diff --git a/pki/base/util/src/netscape/security/util/DerValue.java b/pki/base/util/src/netscape/security/util/DerValue.java
index 58ef8eccc46a2e3fa05dcf625cb6386e958efca0..93ca212408e044d5fac6e9410c597b9ee3de481f 100644
--- a/pki/base/util/src/netscape/security/util/DerValue.java
+++ b/pki/base/util/src/netscape/security/util/DerValue.java
@@ -490,24 +490,6 @@ public class DerValue {
     }
 
     /*
-     * Internal utility ... returns a string regardless of what
-     * restrictions have been placed on its encoding.
-     */
-    private String simpleGetString() throws IOException {
-	StringBuffer s = new StringBuffer(length);
-	try {
-	    int temp = length;
-
-	    data.reset ();
-	    while (temp-- > 0)
-		s.append ((char) data.getByte ());
-	} catch (IOException e) {
-	    return null;
-	}
-	return new String (s);
-    }
-
-    /*
      * @eturns a string if the DerValue is a ASN.1 character string type and
      * if there is a ByteToChar converter for the type. Returns null otherwise.
      */
diff --git a/pki/base/util/src/netscape/security/x509/CRLDistributionPoint.java b/pki/base/util/src/netscape/security/x509/CRLDistributionPoint.java
index 532e313a5d9d9f61e19ef2108491175ed1423661..eb3e8a23022650f4c6d7bac16d8d600f14004a41 100644
--- a/pki/base/util/src/netscape/security/x509/CRLDistributionPoint.java
+++ b/pki/base/util/src/netscape/security/x509/CRLDistributionPoint.java
@@ -478,11 +478,5 @@ public static class Template implements ASN1Template {
     }
 }
 
-private static void toFile(String filename, byte[] bytes) throws IOException{
-        FileOutputStream fos = new FileOutputStream(filename);
-        fos.write(bytes);
-        fos.close();
-}
-
 
 }
diff --git a/pki/base/util/src/netscape/security/x509/CRLDistributionPointsExtension.java b/pki/base/util/src/netscape/security/x509/CRLDistributionPointsExtension.java
index 6da6d586c30da36f98b46282aa95c988fb28a1b5..4e82bfb4cd84ebd48542b13319065d18c5d389e2 100644
--- a/pki/base/util/src/netscape/security/x509/CRLDistributionPointsExtension.java
+++ b/pki/base/util/src/netscape/security/x509/CRLDistributionPointsExtension.java
@@ -67,9 +67,6 @@ public class CRLDistributionPointsExtension extends Extension
     // vector of CRLDistributionPoint
     private SEQUENCE distributionPoints = new SEQUENCE();
 
-    // no default constructor
-    private CRLDistributionPointsExtension() { }
-
     // Cached DER-encoding to improve performance.
     private byte[] cachedEncoding=null;
 
diff --git a/pki/base/util/src/netscape/security/x509/IssuingDistributionPointExtension.java b/pki/base/util/src/netscape/security/x509/IssuingDistributionPointExtension.java
index 22569f454f7886e1e565e1a339d666342458d6af..b7e62e0f038a76ba7df91005c560d040ab802b53 100644
--- a/pki/base/util/src/netscape/security/x509/IssuingDistributionPointExtension.java
+++ b/pki/base/util/src/netscape/security/x509/IssuingDistributionPointExtension.java
@@ -110,10 +110,6 @@ public class IssuingDistributionPointExtension extends Extension
     private byte[] cachedEncoding=null;
 
 
-    // no default constructor
-    private IssuingDistributionPointExtension() { }
-
-
     static {
         try {
             OIDMap.addAttribute(IssuingDistributionPointExtension.class.getName(),
diff --git a/pki/base/util/src/netscape/security/x509/OIDMap.java b/pki/base/util/src/netscape/security/x509/OIDMap.java
index 0b0fd5a361c5d2face9c5f2111d4f01d2d3d38a4..082ecc4fd31630dca2e471ff3017917083c2a2f7 100644
--- a/pki/base/util/src/netscape/security/x509/OIDMap.java
+++ b/pki/base/util/src/netscape/security/x509/OIDMap.java
@@ -19,7 +19,6 @@ package netscape.security.x509;
 
 import java.io.File;
 import java.io.FileInputStream;
-import java.io.FileOutputStream;
 import java.io.IOException;
 import java.security.cert.CertificateException;
 import java.util.Enumeration;
@@ -211,17 +210,6 @@ public class OIDMap {
         }
     }
 
-    // save to file
-    private static void saveDefaults(Properties props,  String fileName) {
-        try {
-            FileOutputStream fos = new FileOutputStream(fileName);
-            props.save(fos, "Registered classes");
-            fos.close();
-        } catch (IOException e) {
-            System.err.println(e);
-        }
-    }
-
     /**
      * Add a name to lookup table.
      *
diff --git a/pki/base/util/src/netscape/security/x509/X509CRLImpl.java b/pki/base/util/src/netscape/security/x509/X509CRLImpl.java
index 82ec78410d43f0284c23b648f887f7f8f7a98e81..e50c13f7ff4b39e25de8c613efc402d12078e530 100755
--- a/pki/base/util/src/netscape/security/x509/X509CRLImpl.java
+++ b/pki/base/util/src/netscape/security/x509/X509CRLImpl.java
@@ -112,12 +112,6 @@ public class X509CRLImpl extends X509CRL {
     private boolean readOnly = false;
 
     /**
-     * Not to be used. As it would lead to cases of uninitialized
-     * CRL objects.
-     */
-    private X509CRLImpl() { }
-
-    /**
      * Unmarshals an X.509 CRL from its encoded form, parsing the encoded
      * bytes.  This form of constructor is used by agents which
      * need to examine and use CRL contents. Note that the buffer
-- 
1.7.7

