summaryrefslogtreecommitdiffstats
path: root/pki/base/util/src/netscape/security/x509/FreshestCRLExtension.java
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-12-10 21:29:06 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-01-09 10:34:18 -0600
commit220cd4319ca8f7503911f38c9c4bd62c1e904472 (patch)
tree57ce0eefb20fbb301b66cdee206ebc08471fdb54 /pki/base/util/src/netscape/security/x509/FreshestCRLExtension.java
parentd5a1c6dfcbe1b1ab7ffe711996f970f1c410b919 (diff)
downloadpki-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/util/src/netscape/security/x509/FreshestCRLExtension.java')
-rw-r--r--pki/base/util/src/netscape/security/x509/FreshestCRLExtension.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/pki/base/util/src/netscape/security/x509/FreshestCRLExtension.java b/pki/base/util/src/netscape/security/x509/FreshestCRLExtension.java
index dd4bdd17..2a479cfc 100644
--- a/pki/base/util/src/netscape/security/x509/FreshestCRLExtension.java
+++ b/pki/base/util/src/netscape/security/x509/FreshestCRLExtension.java
@@ -82,8 +82,6 @@ public class FreshestCRLExtension extends Extension
// Cached DER-encoding to improve performance.
private byte[] cachedEncoding=null;
- // Attribute name
- public static final String NAME = "FreshestCRL";
// The Object Identifier for this extension.
public static final String OID = "2.5.29.46";
@@ -91,7 +89,7 @@ public class FreshestCRLExtension extends Extension
static {
try {
OIDMap.addAttribute(FreshestCRLExtension.class.getName(),
- OID, NAME);
+ OID, FreshestCRLExtension.class.getSimpleName());
} catch (CertificateException e) {}
}
@@ -193,7 +191,7 @@ public class FreshestCRLExtension extends Extension
// minimal implementation.
/////////////////////////////////////////////////////////////
public String toString() {
- return NAME;
+ return FreshestCRLExtension.class.getSimpleName();
}
/**
@@ -238,15 +236,14 @@ public class FreshestCRLExtension extends Extension
"CertAttrSet:FreshestCRLExtension");
}
- public Enumeration getElements() {
- return (new Vector()).elements();
+ /*
+ * TODO replacewith empty collection
+ */
+ public Enumeration<String> getAttributeNames() {
+ return (new Vector<String>()).elements();
}
- public String getName() {
- return NAME;
- }
-
/**
* Test driver.
*/