summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cmscore/security
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/common/src/com/netscape/cmscore/security
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/common/src/com/netscape/cmscore/security')
-rw-r--r--base/common/src/com/netscape/cmscore/security/JssSubsystem.java6
-rw-r--r--base/common/src/com/netscape/cmscore/security/KRATransportCert.java6
-rw-r--r--base/common/src/com/netscape/cmscore/security/KeyCertUtil.java4
-rw-r--r--base/common/src/com/netscape/cmscore/security/RASigningCert.java6
-rw-r--r--base/common/src/com/netscape/cmscore/security/SSLCert.java6
-rw-r--r--base/common/src/com/netscape/cmscore/security/SSLSelfSignedCert.java6
6 files changed, 0 insertions, 34 deletions
diff --git a/base/common/src/com/netscape/cmscore/security/JssSubsystem.java b/base/common/src/com/netscape/cmscore/security/JssSubsystem.java
index 7c16c6f43..42249e324 100644
--- a/base/common/src/com/netscape/cmscore/security/JssSubsystem.java
+++ b/base/common/src/com/netscape/cmscore/security/JssSubsystem.java
@@ -110,15 +110,9 @@ public final class JssSubsystem implements ICryptoSubsystem {
public static final String ID = "jss";
private static final String CONFIG_DIR = "configDir";
- private static final String CERTPREFIX_ALIAS = "certPrefix";
- private static final String KEYPREFIX_ALIAS = "keyPrefix";
- private static final String CONFIGDIR_ALIAS = "configDir";
- private static final String SECMODNAME_ALIAS = "secmodName";
private static final String PROP_ENABLE = "enable";
- private static final String PROP_OCSP_ENABLE = "ocspcheck.enable";
private static final String PASSWORD_ALIAS = "password";
private static final String mId = ID;
- private IConfigStore mSSLSubStore;
protected IConfigStore mConfig = null;
private boolean mInited = false;
private ILogger mLogger = null;
diff --git a/base/common/src/com/netscape/cmscore/security/KRATransportCert.java b/base/common/src/com/netscape/cmscore/security/KRATransportCert.java
index 7f6632e09..7e2e2f90d 100644
--- a/base/common/src/com/netscape/cmscore/security/KRATransportCert.java
+++ b/base/common/src/com/netscape/cmscore/security/KRATransportCert.java
@@ -37,7 +37,6 @@ import com.netscape.certsrv.security.KeyCertData;
public class KRATransportCert extends CertificateInfo {
public static final String SUBJECT_NAME =
"CN=Data Recovery Manager, O=Netscape Communications, C=US";
- private String mTokenname = Constants.PR_INTERNAL_TOKEN_NAME;
public KRATransportCert(KeyCertData properties) {
this(properties, null);
@@ -45,11 +44,6 @@ public class KRATransportCert extends CertificateInfo {
public KRATransportCert(KeyCertData properties, KeyPair pair) {
super(properties, pair);
- String tmp = (String) mProperties.get(Constants.PR_TOKEN_NAME);
-
- if ((tmp != null) &&
- (!tmp.equals(Constants.PR_INTERNAL_TOKEN)))
- mTokenname = tmp;
mProperties.put(Constants.PR_AKI, Constants.TRUE);
}
diff --git a/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java b/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java
index 2bb31ba1a..ccbb004ce 100644
--- a/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java
+++ b/base/common/src/com/netscape/cmscore/security/KeyCertUtil.java
@@ -125,10 +125,6 @@ import com.netscape.cmsutil.util.Utils;
public class KeyCertUtil {
public static final String CA_SIGNINGCERT_NICKNAME = "caSigningCert";
- private static final int MAX_DOMESTIC_SSL_KEY_LEN = 4096;
- private static final int MAX_EXPORT_SSL_KEY_LEN = 512;
- private static final int MIN_DSA_KEY_LEN = 512;
- private static final int MAX_DSA_KEY_LEN = 1024;
public static void checkCertificateExt(String ext) throws EBaseException {
byte[] b = null;
diff --git a/base/common/src/com/netscape/cmscore/security/RASigningCert.java b/base/common/src/com/netscape/cmscore/security/RASigningCert.java
index ac47055b6..cf1de4203 100644
--- a/base/common/src/com/netscape/cmscore/security/RASigningCert.java
+++ b/base/common/src/com/netscape/cmscore/security/RASigningCert.java
@@ -37,7 +37,6 @@ import com.netscape.certsrv.security.KeyCertData;
public class RASigningCert extends CertificateInfo {
public static final String SUBJECT_NAME =
"CN=Registration Authority, O=Netscape Communications, C=US";
- private String mTokenname = Constants.PR_INTERNAL_TOKEN_NAME;
public RASigningCert(KeyCertData properties) {
this(properties, null);
@@ -45,11 +44,6 @@ public class RASigningCert extends CertificateInfo {
public RASigningCert(KeyCertData properties, KeyPair pair) {
super(properties, pair);
- String tmp = (String) mProperties.get(Constants.PR_TOKEN_NAME);
-
- if ((tmp != null) &&
- (!tmp.equals(Constants.PR_INTERNAL_TOKEN)))
- mTokenname = tmp;
try {
if (mProperties.get(Constants.PR_AKI) == null) {
mProperties.put(Constants.PR_AKI, Constants.FALSE);
diff --git a/base/common/src/com/netscape/cmscore/security/SSLCert.java b/base/common/src/com/netscape/cmscore/security/SSLCert.java
index b4fea7f89..9dbec8abb 100644
--- a/base/common/src/com/netscape/cmscore/security/SSLCert.java
+++ b/base/common/src/com/netscape/cmscore/security/SSLCert.java
@@ -37,7 +37,6 @@ import com.netscape.certsrv.security.KeyCertData;
public class SSLCert extends CertificateInfo {
public static final String SUBJECT_NAME =
"CN=SSL, O=Netscape Communications, C=US";
- private String mTokenname = Constants.PR_INTERNAL_TOKEN_NAME;
public SSLCert(KeyCertData properties) {
this(properties, null);
@@ -45,11 +44,6 @@ public class SSLCert extends CertificateInfo {
public SSLCert(KeyCertData properties, KeyPair pair) {
super(properties, pair);
- String tmp = (String) mProperties.get(Constants.PR_TOKEN_NAME);
-
- if ((tmp != null) &&
- (!tmp.equals(Constants.PR_INTERNAL_TOKEN)))
- mTokenname = tmp;
try {
if (mProperties.get(Constants.PR_AKI) == null) {
mProperties.put(Constants.PR_AKI, Constants.FALSE);
diff --git a/base/common/src/com/netscape/cmscore/security/SSLSelfSignedCert.java b/base/common/src/com/netscape/cmscore/security/SSLSelfSignedCert.java
index 8d8e7dfcc..328f6a86c 100644
--- a/base/common/src/com/netscape/cmscore/security/SSLSelfSignedCert.java
+++ b/base/common/src/com/netscape/cmscore/security/SSLSelfSignedCert.java
@@ -37,7 +37,6 @@ import com.netscape.certsrv.security.KeyCertData;
public class SSLSelfSignedCert extends CertificateInfo {
public static final String SUBJECT_NAME =
"CN=SSL, O=Netscape Communications, C=US";
- private String mTokenname = Constants.PR_INTERNAL_TOKEN_NAME;
public SSLSelfSignedCert(KeyCertData properties) {
this(properties, null);
@@ -45,11 +44,6 @@ public class SSLSelfSignedCert extends CertificateInfo {
public SSLSelfSignedCert(KeyCertData properties, KeyPair pair) {
super(properties, pair);
- String tmp = (String) mProperties.get(Constants.PR_TOKEN_NAME);
-
- if ((tmp != null) &&
- (!tmp.equals(Constants.PR_INTERNAL_TOKEN)))
- mTokenname = tmp;
mProperties.remove(Constants.PR_AKI);
// 020599: This SSL server bit has to be turned on. Otherwise, it