summaryrefslogtreecommitdiffstats
path: root/base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java
diff options
context:
space:
mode:
authorChristina Fu <cfu@redhat.com>2014-09-02 20:30:42 -0700
committerChristina Fu <cfu@redhat.com>2014-09-03 16:13:27 -0700
commit82d3ed74289857b5fa60a842979406a2a8acecda (patch)
treeaa397c752fe4c1fb2edd1868442b06acd6771d7d /base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java
parent223d15539b7bcc0df025025036af2935726e52e3 (diff)
downloadpki-82d3ed74289857b5fa60a842979406a2a8acecda.tar.gz
pki-82d3ed74289857b5fa60a842979406a2a8acecda.tar.xz
pki-82d3ed74289857b5fa60a842979406a2a8acecda.zip
ticket #941 Rest interface triggered revoke/unrevoke and cert status update; recovery
Diffstat (limited to 'base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java')
-rw-r--r--base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java b/base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java
index 8bb6e6bf6..c4b485c45 100644
--- a/base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java
+++ b/base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java
@@ -424,8 +424,18 @@ public class TPSEngine {
String userid,
TPSBuffer sDesKey,
String b64cert, String drmConnId) throws TPSException {
-
+ String method = "TPSEngine.recoverKey";
CMS.debug("TPSEngine.recoverKey");
+ if (cuid == null)
+ CMS.debug(method + ": cuid null");
+ else if (userid == null)
+ CMS.debug(method + ": userid null");
+ else if (sDesKey == null)
+ CMS.debug(method + ": isDesKey null");
+ else if (b64cert == null)
+ CMS.debug(method + ": b64cert null");
+ else if (drmConnId == null)
+ CMS.debug(method + ": drmConnId null");
if (cuid == null || userid == null || sDesKey == null || b64cert == null || drmConnId == null) {
throw new TPSException("TPSEngine.recoverKey: invalid input data!", TPSStatus.STATUS_ERROR_RECOVERY_FAILED);