diff options
author | Ade Lee <alee@redhat.com> | 2013-08-28 13:01:44 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2013-09-03 01:04:11 -0400 |
commit | 4afa12c4321f08de115bad85db561a3e5b5853c0 (patch) | |
tree | e9378113b6da87d2803a94232b5bf748cb27ca58 /base/java-tools/src/com/netscape/cmstools/cert/CertCLI.java | |
parent | 9c7e89d813b640619d02f9076eaa90829f4395ef (diff) | |
download | pki-4afa12c4321f08de115bad85db561a3e5b5853c0.tar.gz pki-4afa12c4321f08de115bad85db561a3e5b5853c0.tar.xz pki-4afa12c4321f08de115bad85db561a3e5b5853c0.zip |
Provide enrollment template per profile
This adds an API call to get a template which can be used to generate an
enrollment request which can be passed into the REST API. The template
is simply a CertRequest with the relevant inputs for that profile added in.
Per code review comments, have added the templates interface to
CertRequestResource instead. This patch now includes /certrequests/profiles
and /certrequests/profiles/{id}. In a subsequent patch, all calls in
ProfileResource will be restricted to admins and agents.
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/cert/CertCLI.java')
-rw-r--r-- | base/java-tools/src/com/netscape/cmstools/cert/CertCLI.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/cert/CertCLI.java b/base/java-tools/src/com/netscape/cmstools/cert/CertCLI.java index 9b69c992c..32d580c08 100644 --- a/base/java-tools/src/com/netscape/cmstools/cert/CertCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/cert/CertCLI.java @@ -53,6 +53,9 @@ public class CertCLI extends CLI { addModule(new CertRequestShowCLI(this)); addModule(new CertRequestSubmitCLI(this)); addModule(new CertRequestReviewCLI(this)); + + addModule(new CertRequestProfileFindCLI(this)); + addModule(new CertRequestProfileShowCLI(this)); } public String getFullName() { |