From 7c7b9d023cd466c1771068badc020dab36beb553 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Thu, 5 Apr 2012 14:49:11 -0500 Subject: Removed whitespaces from Java code. Whitespaces in Java code have been removed with the following command: find . -not -path .git -name *.java -exec sed -i 's/[[:blank:]]\+$//' {} \; Ticket #134 --- .../src/com/netscape/certsrv/ldap/ELdapException.java | 12 ++++++------ .../certsrv/ldap/ELdapServerDownException.java | 4 ++-- .../src/com/netscape/certsrv/ldap/ILdapAuthInfo.java | 18 +++++++++--------- .../netscape/certsrv/ldap/ILdapBoundConnFactory.java | 2 +- .../com/netscape/certsrv/ldap/ILdapConnFactory.java | 18 +++++++++--------- .../src/com/netscape/certsrv/ldap/ILdapConnInfo.java | 8 ++++---- .../src/com/netscape/certsrv/ldap/ILdapConnModule.java | 6 +++--- .../src/com/netscape/certsrv/ldap/LdapResources.java | 2 +- 8 files changed, 35 insertions(+), 35 deletions(-) (limited to 'base/common/src/com/netscape/certsrv/ldap') diff --git a/base/common/src/com/netscape/certsrv/ldap/ELdapException.java b/base/common/src/com/netscape/certsrv/ldap/ELdapException.java index 8c1d2d4a5..57d7ca958 100644 --- a/base/common/src/com/netscape/certsrv/ldap/ELdapException.java +++ b/base/common/src/com/netscape/certsrv/ldap/ELdapException.java @@ -23,7 +23,7 @@ import com.netscape.certsrv.base.EBaseException; * A class that represents a Ldap exception. Various * errors can occur when interacting with a Ldap directory server. *

- * + * * @version $Revision$, $Date$ */ public class ELdapException extends EBaseException { @@ -39,7 +39,7 @@ public class ELdapException extends EBaseException { /** * Constructs a Ldap exception. - * + * * @param msgFormat Resource Key, if key not present, serves as the message. *

*/ @@ -49,7 +49,7 @@ public class ELdapException extends EBaseException { /** * Constructs a Ldap exception. - * + * * @param msgFormat Resource Key, if key not present, serves as the message. * Include a message string parameter for variable content. * @param param Message string parameter. @@ -61,7 +61,7 @@ public class ELdapException extends EBaseException { /** * Constructs a Ldap exception. - * + * * @param msgFormat Resource Key, if key not present, serves as the message. * @param e Common exception. *

@@ -72,7 +72,7 @@ public class ELdapException extends EBaseException { /** * Constructs a Ldap exception. - * + * * @param msgFormat Resource Key, if key not present, serves as the message. * @param params Array of Message string parameters. *

@@ -83,7 +83,7 @@ public class ELdapException extends EBaseException { /** * Gets the resource bundle name - * + * * @return Name of the Ldap Exception resource bundle name. *

*/ diff --git a/base/common/src/com/netscape/certsrv/ldap/ELdapServerDownException.java b/base/common/src/com/netscape/certsrv/ldap/ELdapServerDownException.java index f347b1714..30ce8d28a 100644 --- a/base/common/src/com/netscape/certsrv/ldap/ELdapServerDownException.java +++ b/base/common/src/com/netscape/certsrv/ldap/ELdapServerDownException.java @@ -19,7 +19,7 @@ package com.netscape.certsrv.ldap; /** * This represents exception which indicates Ldap server is down. - * + * * @version $Revision$, $Date$ */ public class ELdapServerDownException extends ELdapException { @@ -31,7 +31,7 @@ public class ELdapServerDownException extends ELdapException { /** * Constructs a ldap server down exception with host & port info. - * + * * @param errorString Detailed error message. */ public ELdapServerDownException(String errorString) { diff --git a/base/common/src/com/netscape/certsrv/ldap/ILdapAuthInfo.java b/base/common/src/com/netscape/certsrv/ldap/ILdapAuthInfo.java index 4325f077c..c163c7f0f 100644 --- a/base/common/src/com/netscape/certsrv/ldap/ILdapAuthInfo.java +++ b/base/common/src/com/netscape/certsrv/ldap/ILdapAuthInfo.java @@ -23,7 +23,7 @@ import com.netscape.certsrv.base.IConfigStore; /** * Class for obtaining ldap authentication info from the configuration store. * Two types of authentication is basic and SSL client authentication. - * + * * @version $Revision$, $Date$ */ public interface ILdapAuthInfo { @@ -43,10 +43,10 @@ public interface ILdapAuthInfo { /** * Initialize this class from the config store. - * + * * @param config The config store from which to initialize. * @exception EBaseException Due to failure of the initialization process. - * + * */ public void init(IConfigStore config) throws EBaseException; @@ -54,10 +54,10 @@ public interface ILdapAuthInfo { * Initialize this class from the config store. * Based on host, port, and secure boolean info. * which allows an actual attempt on the server to verify credentials. - * + * * @param config The config store from which to initialize. * @exception EBaseException Due to failure of the initialization process. - * + * */ public void init(IConfigStore config, String host, int port, boolean secure) throws EBaseException; @@ -69,7 +69,7 @@ public interface ILdapAuthInfo { /** * Get authentication type. - * + * * @return one of:
* LdapAuthInfo.LDAP_AUTHTYPE_BASICAUTH or * LdapAuthInfo.LDAP_AUTHTYPE_SSLCLIENTAUTH @@ -78,14 +78,14 @@ public interface ILdapAuthInfo { /** * Get params for authentication. - * + * * @return array of parameters for this authentication as an array of Strings. */ public String[] getParms(); /** * Add password to private password data structure. - * + * * @param prompt Password prompt. * @param pw Password itself. */ @@ -93,7 +93,7 @@ public interface ILdapAuthInfo { /** * Remove password from private password data structure. - * + * * @param prompt Identify password to remove with prompt. */ public void removePassword(String prompt); diff --git a/base/common/src/com/netscape/certsrv/ldap/ILdapBoundConnFactory.java b/base/common/src/com/netscape/certsrv/ldap/ILdapBoundConnFactory.java index 846f51749..36cb6204c 100644 --- a/base/common/src/com/netscape/certsrv/ldap/ILdapBoundConnFactory.java +++ b/base/common/src/com/netscape/certsrv/ldap/ILdapBoundConnFactory.java @@ -25,7 +25,7 @@ package com.netscape.certsrv.ldap; * max size of this connection pool should be configurable. Once * the maximum limit of connections is exceeded, the factory * should provide proper synchronization to resolve contention issues. - * + * * @version $Revision$, $Date$ */ public interface ILdapBoundConnFactory extends ILdapConnFactory { diff --git a/base/common/src/com/netscape/certsrv/ldap/ILdapConnFactory.java b/base/common/src/com/netscape/certsrv/ldap/ILdapConnFactory.java index 738f5832d..74e0394ca 100644 --- a/base/common/src/com/netscape/certsrv/ldap/ILdapConnFactory.java +++ b/base/common/src/com/netscape/certsrv/ldap/ILdapConnFactory.java @@ -26,14 +26,14 @@ import com.netscape.certsrv.base.IConfigStore; * Maintains a pool of connections to the LDAP server. * Multiple threads use this interface to utilize and release * the Ldap connection resources. - * + * * @version $Revision$, $Date$ */ public interface ILdapConnFactory { /** * Initialize the poll from the config store. - * + * * @param config The configuration substore. * @exception EBaseException On configuration error. * @exception ELdapException On all other errors. @@ -42,11 +42,11 @@ public interface ILdapConnFactory { throws EBaseException, ELdapException; /** - * + * * Used for disconnecting all connections. * Used just before a subsystem * shutdown or process exit. - * + * * @exception EldapException on Ldap failure when closing connections. */ public void reset() @@ -54,7 +54,7 @@ public interface ILdapConnFactory { /** * Returns the number of free connections available from this pool. - * + * * @return Integer number of free connections. */ @@ -63,21 +63,21 @@ public interface ILdapConnFactory { /** * Returns the number of total connections available from this pool. * Includes sum of free and in use connections. - * + * * @return Integer number of total connections. */ public int totalConn(); /** * Returns the maximum number of connections available from this pool. - * + * * @return Integer maximum number of connections. */ public int maxConn(); /** * Request access to a Ldap connection from the pool. - * + * * @exception ELdapException if any error occurs, such as a * @return Ldap connection object. * connection is not available @@ -87,7 +87,7 @@ public interface ILdapConnFactory { /** * Return connection to the factory. mandatory after a getConn(). - * + * * @param conn Ldap connection object to be returned to the free list of the pool. * @exception ELdapException On any failure to return the connection. */ diff --git a/base/common/src/com/netscape/certsrv/ldap/ILdapConnInfo.java b/base/common/src/com/netscape/certsrv/ldap/ILdapConnInfo.java index aa5b388a3..e74cc489b 100644 --- a/base/common/src/com/netscape/certsrv/ldap/ILdapConnInfo.java +++ b/base/common/src/com/netscape/certsrv/ldap/ILdapConnInfo.java @@ -23,7 +23,7 @@ import com.netscape.certsrv.base.IConfigStore; /** * Class for reading ldap connection information from the config store. * Ldap connection info: host name, port number,whether of not it is a secure connection. - * + * * @version $Revision$, $Date$ */ public interface ILdapConnInfo { @@ -40,7 +40,7 @@ public interface ILdapConnInfo { /** * Initializes an instance from a config store. - * + * * @param config Configuration store. * @exception ELdapException Ldap related error found. * @exception EBaseException Other errors and errors with params included in the config store. @@ -49,14 +49,14 @@ public interface ILdapConnInfo { /** * Return the name of the Host. - * + * */ public String getHost(); /** * Return the port number of the host. - * + * */ public int getPort(); diff --git a/base/common/src/com/netscape/certsrv/ldap/ILdapConnModule.java b/base/common/src/com/netscape/certsrv/ldap/ILdapConnModule.java index efa1c271e..5ee09028b 100644 --- a/base/common/src/com/netscape/certsrv/ldap/ILdapConnModule.java +++ b/base/common/src/com/netscape/certsrv/ldap/ILdapConnModule.java @@ -25,7 +25,7 @@ import com.netscape.certsrv.base.ISubsystem; * Class on behalf of the Publishing system that controls an instance of an ILdapConnFactory. * Allows a factory to be intialized and grants access * to the factory to other interested parties. - * + * * @version $Revision$, $Date$ */ @@ -33,7 +33,7 @@ public interface ILdapConnModule { /** * Initialize ldap publishing module with config store. - * + * * @param owner Entity that is interested in this instance of Publishing. * @param config Config store containing the info needed to set up Publishing. * @exception ELdapException Due to Ldap error. @@ -51,7 +51,7 @@ public interface ILdapConnModule { * Use ILdapConnFactory.getConn() to get a Ldap connection to the ldap * publishing directory. * Use ILdapConnFactory.returnConn() to return the connection. - * + * * @return Instance of ILdapConnFactory. */ diff --git a/base/common/src/com/netscape/certsrv/ldap/LdapResources.java b/base/common/src/com/netscape/certsrv/ldap/LdapResources.java index 332fcaddf..c7139e931 100644 --- a/base/common/src/com/netscape/certsrv/ldap/LdapResources.java +++ b/base/common/src/com/netscape/certsrv/ldap/LdapResources.java @@ -21,7 +21,7 @@ import java.util.ListResourceBundle; /** * A resource bundle for ldap subsystem. - * + * * @version $Revision$, $Date$ */ public class LdapResources extends ListResourceBundle { -- cgit