summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cms/profile
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2012-07-24 15:35:34 -0400
committerEndi Sukma Dewata <edewata@redhat.com>2012-07-30 09:41:01 -0500
commit70681bc83ccc25639da1b87940661b2649044629 (patch)
treedc24bfc3ff95f93e71b2a2e09dfa99e5c1654e3b /base/common/src/com/netscape/cms/profile
parent14243746edd14be2564b625c4a940c4723c168f1 (diff)
downloadpki-70681bc83ccc25639da1b87940661b2649044629.tar.gz
pki-70681bc83ccc25639da1b87940661b2649044629.tar.xz
pki-70681bc83ccc25639da1b87940661b2649044629.zip
Cert CLI - cert-request-review and cert-request-approve implementations
Diffstat (limited to 'base/common/src/com/netscape/cms/profile')
-rw-r--r--base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java b/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java
index b44a71ee8..b154b3ee4 100644
--- a/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java
+++ b/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java
@@ -104,7 +104,6 @@ public class CAEnrollProfile extends EnrollProfile {
// if PKI Archive Option present, send this request
// to DRM
byte optionsData[] = request.getExtDataInByteArray(REQUEST_ARCHIVE_OPTIONS);
-
// do not archive keys for renewal requests
if ((optionsData != null) && (!request.getRequestType().equals(IRequest.RENEWAL_REQUEST))) {
PKIArchiveOptions options = toPKIArchiveOptions(optionsData);
@@ -175,11 +174,9 @@ public class CAEnrollProfile extends EnrollProfile {
}
}
}
-
// process certificate issuance
X509CertInfo info = request.getExtDataInCertInfo(REQUEST_CERTINFO);
X509CertImpl theCert = null;
-
// #615460 - added audit log (transaction)
SessionContext sc = SessionContext.getExistingContext();
sc.put("profileId", getId());
@@ -187,7 +184,6 @@ public class CAEnrollProfile extends EnrollProfile {
if (setId != null) {
sc.put("profileSetId", setId);
}
-
try {
theCert = caService.issueX509Cert(info, getId() /* profileId */,
id /* requestId */);
@@ -223,7 +219,6 @@ public class CAEnrollProfile extends EnrollProfile {
}
request.setRequestStatus(RequestStatus.COMPLETE);
-
// notifies updater plugins
Enumeration<String> updaterIds = getProfileUpdaterIds();
while (updaterIds.hasMoreElements()) {
@@ -238,4 +233,5 @@ public class CAEnrollProfile extends EnrollProfile {
else
request.setExtData("isEncryptionCert", "false");
}
+
}