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/servlet/common/CMCOutputTemplate.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/servlet/common/CMCOutputTemplate.java')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/servlet/common/CMCOutputTemplate.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/common/CMCOutputTemplate.java b/pki/base/common/src/com/netscape/cms/servlet/common/CMCOutputTemplate.java index 03cb83f6..3fac4a63 100644 --- a/pki/base/common/src/com/netscape/cms/servlet/common/CMCOutputTemplate.java +++ b/pki/base/common/src/com/netscape/cms/servlet/common/CMCOutputTemplate.java @@ -1032,7 +1032,7 @@ public class CMCOutputTemplate { SET dias = msgData.getDigestAlgorithmIdentifiers(); int numDig = dias.size(); - Hashtable digs = new Hashtable(); + Hashtable<String, byte[]> digs = new Hashtable<String, byte[]>(); for (int i=0; i<numDig; i++) { AlgorithmIdentifier dai = (AlgorithmIdentifier) dias.elementAt(i); @@ -1050,7 +1050,7 @@ public class CMCOutputTemplate { org.mozilla.jss.pkix.cms.SignerInfo si = (org.mozilla.jss.pkix.cms.SignerInfo)sis.elementAt(i); String name = si.getDigestAlgorithm().toString(); - byte[] digest = (byte[]) digs.get(name); + byte[] digest = digs.get(name); if (digest == null) { MessageDigest md = MessageDigest.getInstance(name); ByteArrayOutputStream ostream = new ByteArrayOutputStream(); |