diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2015-06-11 08:22:36 -0400 |
---|---|---|
committer | Fraser Tweedale <ftweedal@redhat.com> | 2015-10-21 19:55:36 -0400 |
commit | 465fa069ba67d655be28e1a3b9417dff19148e9f (patch) | |
tree | 95b15933ed1bf5b37444afaf593adfcceb522a39 /base/common/src | |
parent | 562a49f08df2adb1a3f233a9b7490575182ece04 (diff) | |
download | pki-465fa069ba67d655be28e1a3b9417dff19148e9f.tar.gz pki-465fa069ba67d655be28e1a3b9417dff19148e9f.tar.xz pki-465fa069ba67d655be28e1a3b9417dff19148e9f.zip |
Store issuer DN in certificate records
Lightweight CAs mean that we may wish to filter certificates based
on the issuer. Update X509CertImplMapper to store the issuer DN in
each certificate record, using exiting schema.
Also add indices for the 'issuerName' LDAP attribute.
Diffstat (limited to 'base/common/src')
-rw-r--r-- | base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecord.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecord.java b/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecord.java index 76101d9b7..23f4e07d4 100644 --- a/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecord.java +++ b/base/common/src/com/netscape/certsrv/dbs/certdb/ICertRecord.java @@ -69,6 +69,7 @@ public interface ICertRecord extends IDBObj { public final static String X509CERT_DURATION = "duration"; public final static String X509CERT_EXTENSION = "extension"; public final static String X509CERT_SUBJECT = "subject"; + public final static String X509CERT_ISSUER = "issuer"; public final static String X509CERT_PUBLIC_KEY_DATA = "publicKeyData"; public final static String X509CERT_VERSION = "version"; public final static String X509CERT_ALGORITHM = "algorithm"; @@ -86,6 +87,8 @@ public interface ICertRecord extends IDBObj { ATTR_X509CERT + "." + X509CERT_EXTENSION; public final static String ATTR_X509CERT_SUBJECT = ATTR_X509CERT + "." + X509CERT_SUBJECT; + public final static String ATTR_X509CERT_ISSUER = + ATTR_X509CERT + "." + X509CERT_ISSUER; public final static String ATTR_X509CERT_VERSION = ATTR_X509CERT + "." + X509CERT_VERSION; public final static String ATTR_X509CERT_ALGORITHM = @@ -119,9 +122,9 @@ public interface ICertRecord extends IDBObj { public X509CertImpl getCertificate(); /** - * Retrieves name of who issued this certificate. + * Retrieves name of which user issued this certificate. * - * @return name of who issued this certificate + * @return name of which user issued this certificate */ public String getIssuedBy(); |