summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/authority
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-04-01 03:22:33 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-04-12 16:27:02 +0200
commitca2332dfed7834c2fdcd2fe0c2201d58725388e9 (patch)
tree46dd1254a51f373542266bdc65581767f278324a /base/common/src/com/netscape/certsrv/authority
parent80fa9eefaeaeea94c650400f914b5831f1e28261 (diff)
downloadpki-ca2332dfed7834c2fdcd2fe0c2201d58725388e9.tar.gz
pki-ca2332dfed7834c2fdcd2fe0c2201d58725388e9.tar.xz
pki-ca2332dfed7834c2fdcd2fe0c2201d58725388e9.zip
Fixed exception handling in CertificateAuthority.
The CertificateAuthority.getCACert() has been modified to re-throw the exception instead of ignoring it. All callers have been modified to bubble up the exception. https://fedorahosted.org/pki/ticket/1654
Diffstat (limited to 'base/common/src/com/netscape/certsrv/authority')
-rw-r--r--base/common/src/com/netscape/certsrv/authority/ICertAuthority.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/base/common/src/com/netscape/certsrv/authority/ICertAuthority.java b/base/common/src/com/netscape/certsrv/authority/ICertAuthority.java
index 885ca202f..4bd3aff07 100644
--- a/base/common/src/com/netscape/certsrv/authority/ICertAuthority.java
+++ b/base/common/src/com/netscape/certsrv/authority/ICertAuthority.java
@@ -17,15 +17,16 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.certsrv.authority;
-import netscape.security.x509.CertificateChain;
-import netscape.security.x509.X500Name;
-import netscape.security.x509.X509CertImpl;
-
+import com.netscape.certsrv.base.EBaseException;
import com.netscape.certsrv.dbs.certdb.ICertificateRepository;
import com.netscape.certsrv.logging.ILogger;
import com.netscape.certsrv.publish.IPublisherProcessor;
import com.netscape.certsrv.request.IRequestListener;
+import netscape.security.x509.CertificateChain;
+import netscape.security.x509.X500Name;
+import netscape.security.x509.X509CertImpl;
+
/**
* Authority that handles certificates needed by the cert registration
* servlets.
@@ -57,7 +58,7 @@ public interface ICertAuthority extends IAuthority {
*
* @return CA's certificate.
*/
- public X509CertImpl getCACert();
+ public X509CertImpl getCACert() throws EBaseException;
/**
* Returns signing algorithms supported by the CA.