summaryrefslogtreecommitdiffstats
path: root/pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java')
-rw-r--r--pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java42
1 files changed, 20 insertions, 22 deletions
diff --git a/pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java b/pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java
index b9740ee4a..a3ceec31a 100644
--- a/pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java
+++ b/pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java
@@ -1,5 +1,4 @@
package com.netscape.pkisilent.common;
-
// --- BEGIN COPYRIGHT BLOCK ---
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -18,41 +17,42 @@ package com.netscape.pkisilent.common;
// All rights reserved.
// --- END COPYRIGHT BLOCK ---
+
+
/**
- * CMS Test framework . This class reads and sets the values for a CMS subsytems
- * Config file (CS.cfg) Using this class you can set the server to a base state.
+ * CMS Test framework .
+ * This class reads and sets the values for a CMS subsytems Config file (CS.cfg)
+ * Using this class you can set the server to a base state.
*/
+
+
public class BaseState {
private String CMSConfigFile;
private CMSConfig cmscfg = null;
private String ldapbase, ldaphost, ldapport, ldapdn, ldapdnpw;
private boolean ldapsecConn = false;
+ // Constructor
- // Constructor
- public BaseState() {
- }
+
+ public BaseState() {}
/**
- * Constructor . Takes the parameter CMSConfigfilename ( with fullpath)
- *
+ * Constructor . Takes the parameter CMSConfigfilename ( with fullpath)
* @param CMSConfigfile.
*/
- public BaseState(String cmscfilename) {
+ public BaseState(String cmscfilename) {
CMSConfigFile = cmscfilename;
}
/**
- * Set the publishing directory information . Takes the paramters
- * ldaphost,ldapport,ldapDN, ldapDN password, BaseDN , Secure coonection
- * (true/false)
+ * Set the publishing directory information . Takes the paramters ldaphost,ldapport,ldapDN, ldapDN password, BaseDN , Secure coonection (true/false)
*/
- public void setLDAPInfo(String h, String p, String dn, String pw,
- String base, boolean sc) {
+ public void setLDAPInfo(String h, String p, String dn, String pw, String base, boolean sc) {
ldaphost = h;
ldapport = p;
ldapdn = dn;
@@ -63,8 +63,8 @@ public class BaseState {
}
/**
- * Enable SSL Client authentication for Directory enrollment and publishing
- */
+ * Enable SSL Client authentication for Directory enrollment and publishing
+ */
public void EnableSSLClientAuth() {
ldapsecConn = true;
@@ -79,8 +79,7 @@ public class BaseState {
}
/**
- * Set to CA 's base state . Enables Directory based enrollment , publishing
- * and Portal enrollment
+ * Set to CA 's base state . Enables Directory based enrollment , publishing and Portal enrollment
*/
public void CABaseState() {
@@ -99,10 +98,10 @@ public class BaseState {
}
/**
- * Set to RA 's base state . Enables Directory based enrollment and Portal
- * enrollment
+ * Set to RA 's base state . Enables Directory based enrollment and Portal enrollment
*/
+
public void RABaseState() {
cmscfg = new CMSConfig(CMSConfigFile);
cmscfg.EnableAdminEnrollment();
@@ -115,7 +114,6 @@ public class BaseState {
}
- public static void main(String args[]) {
- }// end of function main
+ public static void main(String args[]) {}// end of function main
}