diff options
author | Adam Young <ayoung@redhat.com> | 2011-12-10 21:29:06 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-01-09 10:34:18 -0600 |
commit | 220cd4319ca8f7503911f38c9c4bd62c1e904472 (patch) | |
tree | 57ce0eefb20fbb301b66cdee206ebc08471fdb54 /pki/base/common/src/com/netscape/cms/policy/extensions/IssuerAltNameExt.java | |
parent | d5a1c6dfcbe1b1ab7ffe711996f970f1c410b919 (diff) | |
download | pki-220cd4319ca8f7503911f38c9c4bd62c1e904472.tar.gz pki-220cd4319ca8f7503911f38c9c4bd62c1e904472.tar.xz pki-220cd4319ca8f7503911f38c9c4bd62c1e904472.zip |
Simple Name Instead of Extensions using a specified NAME field they now use the SimpleName of the class. In most cases, this either matches what was used before, or adds the Words "Extension" on to the end of it.
Fixed the Name for Generic Extensions
https://fedorahosted.org/pki/ticket/2
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/policy/extensions/IssuerAltNameExt.java')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/policy/extensions/IssuerAltNameExt.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pki/base/common/src/com/netscape/cms/policy/extensions/IssuerAltNameExt.java b/pki/base/common/src/com/netscape/cms/policy/extensions/IssuerAltNameExt.java index cc2751c0..9524f689 100644 --- a/pki/base/common/src/com/netscape/cms/policy/extensions/IssuerAltNameExt.java +++ b/pki/base/common/src/com/netscape/cms/policy/extensions/IssuerAltNameExt.java @@ -63,14 +63,14 @@ public class IssuerAltNameExt extends APolicyRule // PKIX specifies the that the extension SHOULD NOT be critical public static final boolean DEFAULT_CRITICALITY = false; - private static Vector defaultParams = new Vector(); + private static Vector<String> defaultParams = new Vector<String>(); private static String[] mInfo = null; static { defaultParams.addElement(PROP_CRITICAL + "=" + DEFAULT_CRITICALITY); CMS.getGeneralNamesConfigDefaultParams(null, true, defaultParams); - Vector info = new Vector(); + Vector<String> info = new Vector<String>(); info.addElement(PROP_CRITICAL + ";boolean;RFC 2459 recommendation: SHOULD NOT be marked critical."); info.addElement(IExtendedPluginInfo.HELP_TOKEN + @@ -85,7 +85,7 @@ public class IssuerAltNameExt extends APolicyRule info.copyInto(mInfo); } - private Vector mParams = new Vector(); + private Vector<String> mParams = new Vector<String>(); private IConfigStore mConfig = null; private boolean mCritical = DEFAULT_CRITICALITY; private boolean mEnabled = false; @@ -198,7 +198,7 @@ public class IssuerAltNameExt extends APolicyRule // remove any previously computed version of the extension try { - extensions.delete(IssuerAlternativeNameExtension.NAME); + extensions.delete(IssuerAlternativeNameExtension.class.getSimpleName()); } catch (IOException e) { // this is the hack @@ -212,7 +212,7 @@ public class IssuerAltNameExt extends APolicyRule } try { - extensions.set(IssuerAlternativeNameExtension.NAME, mExtension); + extensions.set(IssuerAlternativeNameExtension.class.getSimpleName(), mExtension); } catch (Exception e) { if (e instanceof RuntimeException) throw (RuntimeException) e; @@ -230,7 +230,7 @@ public class IssuerAltNameExt extends APolicyRule * @return Empty Vector since this policy has no configuration parameters. * for this policy instance. */ - public Vector getInstanceParams() { + public Vector<String> getInstanceParams() { return mParams; } @@ -240,7 +240,7 @@ public class IssuerAltNameExt extends APolicyRule * @return Empty Vector since this policy implementation has no * configuration parameters. */ - public Vector getDefaultParams() { + public Vector<String> getDefaultParams() { return defaultParams; } |