summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-12-05 17:15:56 -0500
committerAdam Young <ayoung@redhat.com>2011-12-07 12:30:49 -0500
commit948bfab248d4cb1faf00c5999f8a55580e89999f (patch)
treeff8f037c8841291b27cb7841d1ed4076928aa04b /pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java
parentec45d246502d8dedb59a97c4599d26657c464e56 (diff)
downloadpki-948bfab248d4cb1faf00c5999f8a55580e89999f.tar.gz
pki-948bfab248d4cb1faf00c5999f8a55580e89999f.tar.xz
pki-948bfab248d4cb1faf00c5999f8a55580e89999f.zip
TreeSet
ArraySet and AttributeNameEnumeration both were not updated to handfle Generics. Neither are really needed, and are likely to introduce errors. ArraySet can be safely replaced by TreeSet. TreeSet provides a stricter ordering constraint than ArraySet did. This will not hurt anything, and may actually be closer to the desired behavior AttributeNameEnumeration was a thin wrapper around Vector. It has been replaced with Vector<String> In addition, this patch cleans up the Type safety in of the collections used in the related files. removed files from cmake Removed custom collection files Supressed watnings generated by the clone method.
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java')
-rw-r--r--pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java b/pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java
index 991a952aa..78acced01 100644
--- a/pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java
+++ b/pki/base/common/src/com/netscape/certsrv/dbs/crldb/ICRLIssuingPointRecord.java
@@ -22,6 +22,8 @@ import java.math.BigInteger;
import java.util.Date;
import java.util.Hashtable;
+import netscape.security.x509.RevokedCertificate;
+
import com.netscape.certsrv.dbs.IDBObj;
@@ -134,27 +136,27 @@ public interface ICRLIssuingPointRecord extends IDBObj {
*
* @return list of recently revoked certificates
*/
- public Hashtable getCRLCacheNoClone();
- public Hashtable getCRLCache();
+ public Hashtable<BigInteger,RevokedCertificate> getCRLCacheNoClone();
+ public Hashtable<BigInteger,RevokedCertificate> getCRLCache();
/**
* Retrieves cache information about revoked certificates.
*
* @return list of recently revoked certificates
*/
- public Hashtable getRevokedCerts();
+ public Hashtable<BigInteger,RevokedCertificate> getRevokedCerts();
/**
* Retrieves cache information about certificates released from hold.
*
* @return list of certificates recently released from hold
*/
- public Hashtable getUnrevokedCerts();
+ public Hashtable<BigInteger,RevokedCertificate> getUnrevokedCerts();
/**
* Retrieves cache information about expired certificates.
*
* @return list of recently expired certificates
*/
- public Hashtable getExpiredCerts();
+ public Hashtable<BigInteger,RevokedCertificate> getExpiredCerts();
}