diff options
author | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-11-10 18:51:29 +0000 |
---|---|---|
committer | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-11-10 18:51:29 +0000 |
commit | 990c4cf798598d2cadc1595b8dc1fce71355179b (patch) | |
tree | 0639c1b80463d4dee840ad1c4067f170ef8cc01a /pki/base/common/src/com/netscape/cms/profile/def | |
parent | 8c66e02cb223482d636d60a666904e85ba4a59cb (diff) | |
download | pki-990c4cf798598d2cadc1595b8dc1fce71355179b.tar.gz pki-990c4cf798598d2cadc1595b8dc1fce71355179b.tar.xz pki-990c4cf798598d2cadc1595b8dc1fce71355179b.zip |
Fix Bugzilla Bug 360721 - New Feature: Profile Integrity Check . . .
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1491 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/profile/def')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/profile/def/EnrollDefault.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/profile/def/EnrollDefault.java b/pki/base/common/src/com/netscape/cms/profile/def/EnrollDefault.java index 7e5e48d90..acc7c7574 100644 --- a/pki/base/common/src/com/netscape/cms/profile/def/EnrollDefault.java +++ b/pki/base/common/src/com/netscape/cms/profile/def/EnrollDefault.java @@ -312,6 +312,14 @@ public abstract class EnrollDefault implements IPolicyDefault, ICertInfoPolicyDe } CertificateExtensions exts = null; + Extension alreadyPresentExtension = getExtension(name,info); + + if (alreadyPresentExtension != null) { + String eName = ext.toString(); + CMS.debug("EnrollDefault.addExtension: duplicate extension attempted! Name: " + eName); + throw new EProfileException(CMS.getUserMessage("CMS_PROFILE_DUPLICATE_EXTENSION",eName)); + } + try { exts = (CertificateExtensions) info.get(X509CertInfo.EXTENSIONS); |