diff options
author | Christina Fu <cfu@redhat.com> | 2014-09-02 20:30:42 -0700 |
---|---|---|
committer | Christina Fu <cfu@redhat.com> | 2014-09-03 16:13:27 -0700 |
commit | 82d3ed74289857b5fa60a842979406a2a8acecda (patch) | |
tree | aa397c752fe4c1fb2edd1868442b06acd6771d7d /base/tps-tomcat/src/org/dogtagpki/server/tps/engine/TPSEngine.java | |
parent | 223d15539b7bcc0df025025036af2935726e52e3 (diff) | |
download | pki-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.java | 12 |
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); |