diff options
author | Ade Lee <alee@redhat.com> | 2011-12-07 16:58:12 -0500 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2011-12-07 16:58:12 -0500 |
commit | 32150d3ee32f8ac27118af7c792794b538c78a2f (patch) | |
tree | 52dd96f664a6fa51be25b28b6f10adc5f2c9f660 /pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java | |
parent | f05d58a46795553beb8881039cc922974b40db34 (diff) | |
download | pki-32150d3ee32f8ac27118af7c792794b538c78a2f.tar.gz pki-32150d3ee32f8ac27118af7c792794b538c78a2f.tar.xz pki-32150d3ee32f8ac27118af7c792794b538c78a2f.zip |
Formatting
Formatted project according to eclipse project settings
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.java | 42 |
1 files changed, 22 insertions, 20 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 a3ceec31a..b9740ee4a 100644 --- a/pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java +++ b/pki/base/silent/src/com/netscape/pkisilent/common/BaseState.java @@ -1,4 +1,5 @@ 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 @@ -17,42 +18,41 @@ 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,7 +79,8 @@ 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() { @@ -98,10 +99,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(); @@ -114,6 +115,7 @@ public class BaseState { } - public static void main(String args[]) {}// end of function main + public static void main(String args[]) { + }// end of function main } |