diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2012-06-05 15:14:04 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-06-05 14:46:13 -0500 |
commit | 084a8cd360c7508febde06415d727d7d247b16ad (patch) | |
tree | 4564fc1b002fd0dd5d9a2143910a0a70f00bf7b0 | |
parent | 4a012010233b0a5fd613c9d7734ee01be64e3834 (diff) | |
download | pki-084a8cd360c7508febde06415d727d7d247b16ad.tar.gz pki-084a8cd360c7508febde06415d727d7d247b16ad.tar.xz pki-084a8cd360c7508febde06415d727d7d247b16ad.zip |
Minor Fix In a CertificateInfo class
-rw-r--r-- | base/common/src/com/netscape/cmscore/security/CertificateInfo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/cmscore/security/CertificateInfo.java b/base/common/src/com/netscape/cmscore/security/CertificateInfo.java index fef733a11..c4d776934 100644 --- a/base/common/src/com/netscape/cmscore/security/CertificateInfo.java +++ b/base/common/src/com/netscape/cmscore/security/CertificateInfo.java @@ -190,7 +190,7 @@ public abstract class CertificateInfo { String key = getKeyAlgorithm(); algm = KeyCertUtil.getSigningAlgorithm(key, hashtype); if (algm == null) { - throw new NoSuchAlgorithmException("No Algorithm for Key : " + key + " and Hashtype : " + hashtype); + throw new NoSuchAlgorithmException("Key : " + key + "/ Hashtype : " + hashtype); } mProperties.put(Constants.PR_SIGNATURE_ALGORITHM, algm); } @@ -212,7 +212,7 @@ public abstract class CertificateInfo { } catch (IOException e) { throw new EBaseException(CMS.getUserMessage("CMS_BASE_INVALID_CERT", e.toString())); } catch (NoSuchAlgorithmException e) { - throw new EBaseException(CMS.getUserMessage("CMS_BASE_ALG_NOT_SUPPORTED", e.toString())); + throw new EBaseException(CMS.getUserMessage("CMS_BASE_ALG_NOT_SUPPORTED", e.getMessage())); } return certInfo; |