diff options
author | Matthew Harmsen <mharmsen@redhat.com> | 2013-10-15 17:55:05 -0700 |
---|---|---|
committer | Matthew Harmsen <mharmsen@redhat.com> | 2013-10-15 17:59:23 -0700 |
commit | 47c77a67d67cb443070137fd9b8d64955d499089 (patch) | |
tree | 12b7588f34a80a74c000e77b19017ec941ad5231 /base/common/src/com/netscape/certsrv/system | |
parent | 618be8bd7e9488a325789232c94aad109f9b6803 (diff) | |
download | pki-47c77a67d67cb443070137fd9b8d64955d499089.tar.gz pki-47c77a67d67cb443070137fd9b8d64955d499089.tar.xz pki-47c77a67d67cb443070137fd9b8d64955d499089.zip |
Stand-alone DRM
* TRAC Ticket #667 - provide option for ca-less drm install
Diffstat (limited to 'base/common/src/com/netscape/certsrv/system')
-rw-r--r-- | base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java index 4fdf594d1..23f9676fe 100644 --- a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java +++ b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java @@ -71,6 +71,7 @@ public class ConfigurationRequest { private static final String ADMIN_PROFILE_ID = "adminProfileID"; private static final String IMPORT_ADMIN_CERT = "importAdminCert"; private static final String ADMIN_CERT = "adminCert"; + private static final String STANDALONE = "standAlone"; private static final String STEP_TWO = "stepTwo"; private static final String GENERATE_SERVER_CERT = "generateServerCert"; @@ -216,6 +217,9 @@ public class ConfigurationRequest { protected String adminCert; @XmlElement + protected String standAlone; + + @XmlElement protected String stepTwo; @XmlElement(defaultValue = "true") @@ -293,6 +297,7 @@ public class ConfigurationRequest { adminProfileID = form.getFirst(ADMIN_PROFILE_ID); adminCert = form.getFirst(ADMIN_CERT); importAdminCert = form.getFirst(IMPORT_ADMIN_CERT); + standAlone = form.getFirst(STANDALONE); stepTwo = form.getFirst(STEP_TWO); generateServerCert = form.getFirst(GENERATE_SERVER_CERT); authdbBaseDN = form.getFirst(AUTHDB_BASEDN); @@ -796,8 +801,16 @@ public class ConfigurationRequest { this.adminCert = adminCert; } - public String getStepTwo() { - return stepTwo; + public boolean getStandAlone() { + return (standAlone != null && standAlone.equalsIgnoreCase("true")); + } + + public void setStandAlone(String standAlone) { + this.standAlone = standAlone; + } + + public boolean getStepTwo() { + return (stepTwo != null && stepTwo.equalsIgnoreCase("true")); } public void setStepTwo(String stepTwo) { @@ -935,6 +948,7 @@ public class ConfigurationRequest { ", adminCert=" + adminCert + ", importAdminCert=" + importAdminCert + ", generateServerCert=" + generateServerCert + + ", standAlone=" + standAlone + ", stepTwo=" + stepTwo + ", authdbBaseDN=" + authdbBaseDN + ", authdbHost=" + authdbHost + |