From 084a8cd360c7508febde06415d727d7d247b16ad Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Tue, 5 Jun 2012 15:14:04 -0400 Subject: Minor Fix In a CertificateInfo class --- base/common/src/com/netscape/cmscore/security/CertificateInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/common/src/com/netscape/cmscore/security') 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; -- cgit