From 7d88f4ee050856b8fef5f260cfe1b3aeec201fda Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Mon, 9 Apr 2012 13:56:59 -0500 Subject: 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 --- base/common/src/com/netscape/cmscore/security/JssSubsystem.java | 6 ------ base/common/src/com/netscape/cmscore/security/KRATransportCert.java | 6 ------ base/common/src/com/netscape/cmscore/security/KeyCertUtil.java | 4 ---- base/common/src/com/netscape/cmscore/security/RASigningCert.java | 6 ------ base/common/src/com/netscape/cmscore/security/SSLCert.java | 6 ------ .../common/src/com/netscape/cmscore/security/SSLSelfSignedCert.java | 6 ------ 6 files changed, 34 deletions(-) (limited to 'base/common/src/com/netscape/cmscore/security') 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 -- cgit