summaryrefslogtreecommitdiffstats
path: root/base/java-tools
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-09 13:56:59 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-12 10:16:22 -0500
commit7d88f4ee050856b8fef5f260cfe1b3aeec201fda (patch)
tree9d0b80dcbcc63ccb83d32995376168dcd086bab9 /base/java-tools
parent3f24e55923fc986af4c6a08b2b8d45704a905627 (diff)
downloadpki-7d88f4ee050856b8fef5f260cfe1b3aeec201fda.tar.gz
pki-7d88f4ee050856b8fef5f260cfe1b3aeec201fda.tar.xz
pki-7d88f4ee050856b8fef5f260cfe1b3aeec201fda.zip
Removed unused private fields.
Most of unused private fields have been removed because they generate warnings in Eclipse. Some are kept because it might be useful later. Ticket #139
Diffstat (limited to 'base/java-tools')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/CMCEnroll.java2
-rw-r--r--base/java-tools/src/com/netscape/cmstools/CMCRequest.java2
-rw-r--r--base/java-tools/src/com/netscape/cmstools/CMCRevoke.java2
-rw-r--r--base/java-tools/src/com/netscape/cmstools/DRMTool.java6
-rw-r--r--base/java-tools/src/com/netscape/cmstools/PasswordCache.java3
5 files changed, 0 insertions, 15 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/CMCEnroll.java b/base/java-tools/src/com/netscape/cmstools/CMCEnroll.java
index b7955d70b..bed5d8334 100644
--- a/base/java-tools/src/com/netscape/cmstools/CMCEnroll.java
+++ b/base/java-tools/src/com/netscape/cmstools/CMCEnroll.java
@@ -79,8 +79,6 @@ public class CMCEnroll {
public static final String PR_REQUEST_PKCS10 = "PKCS10";
public static final int ARGC = 4;
- private static final String CERTDB = "cert8.db";
- private static final String KEYDB = "key3.db";
public static final String HEADER = "-----BEGIN NEW CERTIFICATE REQUEST-----";
public static final String TRAILER = "-----END NEW CERTIFICATE REQUEST-----";
diff --git a/base/java-tools/src/com/netscape/cmstools/CMCRequest.java b/base/java-tools/src/com/netscape/cmstools/CMCRequest.java
index 1dfb36fb2..f2205ed5c 100644
--- a/base/java-tools/src/com/netscape/cmstools/CMCRequest.java
+++ b/base/java-tools/src/com/netscape/cmstools/CMCRequest.java
@@ -97,8 +97,6 @@ public class CMCRequest {
public static final String PR_REQUEST_CRMF = "CRMF";
public static final int ARGC = 1;
- private static final String CERTDB = "cert8.db";
- private static final String KEYDB = "key3.db";
public static final String HEADER = "-----BEGIN NEW CERTIFICATE REQUEST-----";
public static final String TRAILER = "-----END NEW CERTIFICATE REQUEST-----";
diff --git a/base/java-tools/src/com/netscape/cmstools/CMCRevoke.java b/base/java-tools/src/com/netscape/cmstools/CMCRevoke.java
index d0cc3077e..8dffa13e3 100644
--- a/base/java-tools/src/com/netscape/cmstools/CMCRevoke.java
+++ b/base/java-tools/src/com/netscape/cmstools/CMCRevoke.java
@@ -69,8 +69,6 @@ import com.netscape.cmsutil.util.Utils;
*/
public class CMCRevoke {
public static final int ARGC = 7;
- private static final String CERTDB = "cert8.db";
- private static final String KEYDB = "key3.db";
public static final String HEADER = "-----BEGIN NEW CERTIFICATE REQUEST-----";
public static final String TRAILER = "-----END NEW CERTIFICATE REQUEST-----";
static String dValue = null, nValue = null, iValue = null, sValue = null, mValue = null, hValue = null,
diff --git a/base/java-tools/src/com/netscape/cmstools/DRMTool.java b/base/java-tools/src/com/netscape/cmstools/DRMTool.java
index be6b10afc..c6b2c575f 100644
--- a/base/java-tools/src/com/netscape/cmstools/DRMTool.java
+++ b/base/java-tools/src/com/netscape/cmstools/DRMTool.java
@@ -507,7 +507,6 @@ public class DRMTool {
private static final String COMMA = ",";
private static final String DOT = ".";
private static final String EQUAL_SIGN = "=";
- private static final String HASH = "#";
private static final String LEFT_BRACE = "[";
private static final String NEWLINE = "\n";
private static final String PLUS = "+";
@@ -862,7 +861,6 @@ public class DRMTool {
// Constants: Target Certificate Information
private static final String HEADER = "-----BEGIN";
private static final String TRAILER = "-----END";
- private static final String X509_INFO = "x509.INFO";
// Constants: DRM LDIF Record Fields
private static final String DRM_LDIF_ARCHIVED_BY = "archivedBy:";
@@ -925,7 +923,6 @@ public class DRMTool {
private static String mDateOfModify = null;
// Variables: Command-Line Options
- private static boolean mMandatoryFlag = false;
private static boolean mRewrapFlag = false;
private static boolean mPwdfileFlag = false;
private static boolean mAppendIdOffsetFlag = false;
@@ -4582,9 +4579,6 @@ public class DRMTool {
printUsage();
System.exit(0);
}
-
- // Mark the 'Mandatory' flag true
- mMandatoryFlag = true;
}
// Check to see that if the 'Rewrap' command-line options were
diff --git a/base/java-tools/src/com/netscape/cmstools/PasswordCache.java b/base/java-tools/src/com/netscape/cmstools/PasswordCache.java
index dbd8a21f3..c9e36585e 100644
--- a/base/java-tools/src/com/netscape/cmstools/PasswordCache.java
+++ b/base/java-tools/src/com/netscape/cmstools/PasswordCache.java
@@ -59,9 +59,6 @@ public class PasswordCache {
*/
public static final String PROP_PWC_NICKNAME = "sso_key";
public static final String PW_TAG_INTERNAL_LDAP_DB = "Internal LDAP Database";
- private static final String WRONG_NUM_ARGS = "Error: wrong number of arguments";
- private static final String CERTDB = "cert8.db";
- private static final String KEYDB = "key3.db";
private static void usage() {
System.out.println(