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 --- .../cmscore/authentication/AuthSubsystem.java | 22 +++++++++++----------- .../authentication/CertUserDBAuthentication.java | 16 ++++++++-------- .../ChallengePhraseAuthentication.java | 22 +++++++++++----------- .../cmscore/authentication/NullAuthentication.java | 14 +++++++------- .../authentication/PasswdUserDBAuthentication.java | 16 ++++++++-------- .../SSLClientCertAuthentication.java | 8 ++++---- .../cmscore/authentication/VerifiedCert.java | 2 +- .../cmscore/authentication/VerifiedCerts.java | 2 +- 8 files changed, 51 insertions(+), 51 deletions(-) (limited to 'base/common/src/com/netscape/cmscore/authentication') diff --git a/base/common/src/com/netscape/cmscore/authentication/AuthSubsystem.java b/base/common/src/com/netscape/cmscore/authentication/AuthSubsystem.java index 64a09173f..5c27d8c6a 100644 --- a/base/common/src/com/netscape/cmscore/authentication/AuthSubsystem.java +++ b/base/common/src/com/netscape/cmscore/authentication/AuthSubsystem.java @@ -42,7 +42,7 @@ import com.netscape.cmscore.util.Debug; /** * Default authentication subsystem *

- * + * * @author cfu * @author lhsiao * @version $Revision$, $Date$ @@ -74,7 +74,7 @@ public class AuthSubsystem implements IAuthSubsystem { * Initializes the authentication subsystem from the config store. * Load Authentication manager plugins, create and initialize * initialize authentication manager instances. - * + * * @param owner The owner of this module. * @param config The configuration store. */ @@ -84,7 +84,7 @@ public class AuthSubsystem implements IAuthSubsystem { mLogger = CMS.getLogger(); mConfig = config; - // hardcode admin and agent plugins required for the server to be + // hardcode admin and agent plugins required for the server to be // functional. AuthMgrPlugin newPlugin = null; @@ -259,7 +259,7 @@ public class AuthSubsystem implements IAuthSubsystem { /** * Authenticate to the named authentication manager instance *

- * + * * @param authCred authentication credentials subject to the * requirements of each authentication manager * @param authMgrName name of the authentication manager instance @@ -309,7 +309,7 @@ public class AuthSubsystem implements IAuthSubsystem { /** * Gets configuration parameters for the given * authentication manager plugin. - * + * * @param implName Name of the authentication plugin. * @return Hashtable of required parameters. */ @@ -345,7 +345,7 @@ public class AuthSubsystem implements IAuthSubsystem { /** * Add an authentication manager instance. - * + * * @param name name of the authentication manager instance * @param authMgr the authentication manager instance to be added */ @@ -363,7 +363,7 @@ public class AuthSubsystem implements IAuthSubsystem { /** * Gets the authentication manager instance of the specified name. - * + * * @param name name of the authentication manager instance * @return the named authentication manager instance */ @@ -427,7 +427,7 @@ public class AuthSubsystem implements IAuthSubsystem { /** * Retrieves id (name) of this subsystem. - * + * * @return name of the authentication subsystem */ public String getId() { @@ -438,7 +438,7 @@ public class AuthSubsystem implements IAuthSubsystem { * Sets id string to this subsystem. *

* Use with caution. Should not do it when sharing with others - * + * * @param id name to be applied to an authentication sybsystem */ public void setId(String id) throws EBaseException { @@ -485,7 +485,7 @@ public class AuthSubsystem implements IAuthSubsystem { /** * Returns the root configuration storage of this system. *

- * + * * @return configuration store of this subsystem */ public IConfigStore getConfigStore() { @@ -494,7 +494,7 @@ public class AuthSubsystem implements IAuthSubsystem { /** * gets the named authentication manager - * + * * @param name of the authentication manager * @return the named authentication manager */ diff --git a/base/common/src/com/netscape/cmscore/authentication/CertUserDBAuthentication.java b/base/common/src/com/netscape/cmscore/authentication/CertUserDBAuthentication.java index 84807430f..e9fb6c891 100644 --- a/base/common/src/com/netscape/cmscore/authentication/CertUserDBAuthentication.java +++ b/base/common/src/com/netscape/cmscore/authentication/CertUserDBAuthentication.java @@ -42,7 +42,7 @@ import com.netscape.cmscore.usrgrp.User; * Maps a SSL client authenticate certificate to a user (agent) entry in the * internal database. *

- * + * * @author lhsiao * @author cfu * @version $Revision$, $Date$ @@ -80,7 +80,7 @@ public class CertUserDBAuthentication implements IAuthManager { * initializes the CertUserDBAuthentication auth manager *

* called by AuthSubsystem init() method, when initializing all available authentication managers. - * + * * @param owner - The authentication subsystem that hosts this * auth manager * @param config - The configuration store used by the @@ -129,11 +129,11 @@ public class CertUserDBAuthentication implements IAuthManager { * authenticates user(agent) by certificate *

* called by other subsystems or their servlets to authenticate users (agents) - * + * * @param authCred - authentication credential that contains * an usrgrp.Certificates of the user (agent) * @return the authentication token that contains the following - * + * * @exception com.netscape.certsrv.base.EAuthsException any * authentication failure or insufficient credentials * @see com.netscape.certsrv.authentication.AuthToken @@ -183,7 +183,7 @@ public class CertUserDBAuthentication implements IAuthManager { throw new EBaseException(CMS.getUserMessage("CMS_BASE_INTERNAL_ERROR", e.toString())); } - // any unexpected error occurs like internal db down, + // any unexpected error occurs like internal db down, // UGSubsystem only returns null for user. if (user == null) { CMS.debug("Authentication: cannot map certificate to user"); @@ -211,7 +211,7 @@ public class CertUserDBAuthentication implements IAuthManager { * the servlets that handle agent operations to authenticate its * users. It calls this method to know which are the * required credentials from the user (e.g. Javascript form data) - * + * * @return attribute names in Vector */ public String[] getRequiredCreds() { @@ -224,7 +224,7 @@ public class CertUserDBAuthentication implements IAuthManager { * the Certificate Server Console to display the table for * configuration purposes. CertUserDBAuthentication is currently not * exposed in this case, so this method is not to be used. - * + * * @return configuration parameter names in Hashtable of Vectors * where each hashtable entry's key is the substore name, value is a * Vector of parameter names. If no substore, the parameter name @@ -243,7 +243,7 @@ public class CertUserDBAuthentication implements IAuthManager { /** * gets the configuretion substore used by this authentication * manager - * + * * @return configuration store */ public IConfigStore getConfigStore() { diff --git a/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java b/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java index a7d5329c0..f40145938 100644 --- a/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java +++ b/base/common/src/com/netscape/cmscore/authentication/ChallengePhraseAuthentication.java @@ -53,7 +53,7 @@ import com.netscape.cmsutil.util.Utils; * internal database and further compares the challenge phrase with * that from the EE input. *

- * + * * @author cfu chrisho * @version $Revision$, $Date$ */ @@ -81,7 +81,7 @@ public class ChallengePhraseAuthentication implements IAuthManager { private String mRequestor = null; private MessageDigest mSHADigest = null; - // request attributes hacks + // request attributes hacks public static final String CHALLENGE_PHRASE = CRED_CHALLENGE; public static final String SUBJECTNAME = "subjectName"; public static final String SERIALNUMBER = "serialNumber"; @@ -94,7 +94,7 @@ public class ChallengePhraseAuthentication implements IAuthManager { * initializes the ChallengePhraseAuthentication auth manager *

* called by AuthSubsystem init() method, when initializing all available authentication managers. - * + * * @param name The name of this authentication manager instance. * @param implName The name of the authentication manager plugin. * @param config The configuration store for this authentication manager. @@ -132,11 +132,11 @@ public class ChallengePhraseAuthentication implements IAuthManager { * authenticates revocation of a certification by a challenge phrase *

* called by other subsystems or their servlets to authenticate a revocation request - * + * * @param authCred - authentication credential that contains * a Certificate to revoke * @return the authentication token that contains the request id - * + * * @exception EMissingCredential If a required credential for this * authentication manager is missing. * @exception EInvalidCredentials If credentials cannot be authenticated. @@ -155,10 +155,10 @@ public class ChallengePhraseAuthentication implements IAuthManager { AuthToken authToken = new AuthToken(this); /* - X509Certificate[] x509Certs = + X509Certificate[] x509Certs = (X509Certificate[]) authCred.get(CRED_CERT); if (x509Certs == null) { - log(ILogger.LL_FAILURE, + log(ILogger.LL_FAILURE, " missing cert credential."); throw new EMissingCredential(CRED_CERT_SERIAL); } @@ -201,7 +201,7 @@ public class ChallengePhraseAuthentication implements IAuthManager { /* maybe later if (mCertDB.isCertificateRevoked(cert) != null) { - log(ILogger.LL_FAILURE, + log(ILogger.LL_FAILURE, "Certificate has already been revoked."); // throw something else...cfu throw new EInvalidCredentials(); @@ -336,7 +336,7 @@ public class ChallengePhraseAuthentication implements IAuthManager { * the servlets that handle agent operations to authenticate its * users. It calls this method to know which are the * required credentials from the user (e.g. Javascript form data) - * + * * @return attribute names in Vector */ public String[] getRequiredCreds() { @@ -349,7 +349,7 @@ public class ChallengePhraseAuthentication implements IAuthManager { * the Certificate Server Console to display the table for * configuration purposes. ChallengePhraseAuthentication is currently not * exposed in this case, so this method is not to be used. - * + * * @return configuration parameter names in Hashtable of Vectors * where each hashtable entry's key is the substore name, value is a * Vector of parameter names. If no substore, the parameter name @@ -368,7 +368,7 @@ public class ChallengePhraseAuthentication implements IAuthManager { /** * gets the configuretion substore used by this authentication * manager - * + * * @return configuration store */ public IConfigStore getConfigStore() { diff --git a/base/common/src/com/netscape/cmscore/authentication/NullAuthentication.java b/base/common/src/com/netscape/cmscore/authentication/NullAuthentication.java index e124f1407..a7a1461cf 100644 --- a/base/common/src/com/netscape/cmscore/authentication/NullAuthentication.java +++ b/base/common/src/com/netscape/cmscore/authentication/NullAuthentication.java @@ -31,7 +31,7 @@ import com.netscape.certsrv.logging.ILogger; /** * This authentication does nothing but just returns an empty authToken. *

- * + * * @author chrisho * @version $Revision$, $Date$ */ @@ -53,7 +53,7 @@ public class NullAuthentication implements IAuthManager { * initializes the NullAuthentication auth manager *

* called by AuthSubsystem init() method, when initializing all available authentication managers. - * + * * @param name - Name assigned to this authentication manager instance. * @param implName - Name of the authentication plugin. * @param config - The configuration store used by the @@ -72,7 +72,7 @@ public class NullAuthentication implements IAuthManager { * authenticates nothing *

* called by other subsystems or their servlets to authenticate administrators - * + * * @param authCred Authentication credentials. * "uid" and "pwd" are required. * @return the authentication token (authToken) that contains the following @@ -113,7 +113,7 @@ public class NullAuthentication implements IAuthManager { * required by this authentication manager. Generally used by * servlets that use this authentication manager, to retrieve * required credentials from the user (e.g. Javascript form data) - * + * * @return attribute names in Vector */ public String[] getRequiredCreds() { @@ -123,7 +123,7 @@ public class NullAuthentication implements IAuthManager { /** * Get the list of configuration parameter names * required by this authentication manager. In this case, an empty list. - * + * * @return String array of configuration parameters. */ public String[] getConfigParams() { @@ -139,7 +139,7 @@ public class NullAuthentication implements IAuthManager { /** * gets the configuration substore used by this authentication * manager - * + * * @return configuration store */ public IConfigStore getConfigStore() { @@ -148,7 +148,7 @@ public class NullAuthentication implements IAuthManager { /** * Log a message. - * + * * @param level The logging level. * @param msg The message to log. */ diff --git a/base/common/src/com/netscape/cmscore/authentication/PasswdUserDBAuthentication.java b/base/common/src/com/netscape/cmscore/authentication/PasswdUserDBAuthentication.java index f20bd5f07..5b6418c00 100644 --- a/base/common/src/com/netscape/cmscore/authentication/PasswdUserDBAuthentication.java +++ b/base/common/src/com/netscape/cmscore/authentication/PasswdUserDBAuthentication.java @@ -48,7 +48,7 @@ import com.netscape.cmscore.util.Debug; * Authentications by checking the uid and password against the * database. *

- * + * * @author lhsiao, cfu * @version $Revision$, $Date$ */ @@ -81,7 +81,7 @@ public class PasswdUserDBAuthentication implements IAuthManager { * initializes the PasswdUserDBAuthentication auth manager *

* called by AuthSubsystem init() method, when initializing all available authentication managers. - * + * * @param name - Name assigned to this authentication manager instance. * @param implName - Name of the authentication plugin. * @param config - The configuration store used by the @@ -110,7 +110,7 @@ public class PasswdUserDBAuthentication implements IAuthManager { * authenticates administratrators by LDAP uid/pwd *

* called by other subsystems or their servlets to authenticate administrators - * + * * @param authCred Authentication credentials. * "uid" and "pwd" are required. * @return the authentication token (authToken) that contains the following @@ -127,7 +127,7 @@ public class PasswdUserDBAuthentication implements IAuthManager { throws EMissingCredential, EInvalidCredentials, EBaseException { AuthToken authToken = new AuthToken(this); - // make sure the required credentials are provided + // make sure the required credentials are provided String uid = (String) authCred.get(CRED_UID); CMS.debug("Authentication: UID=" + uid); if (uid == null) { @@ -219,7 +219,7 @@ public class PasswdUserDBAuthentication implements IAuthManager { * required by this authentication manager. Generally used by * servlets that use this authentication manager, to retrieve * required credentials from the user (e.g. Javascript form data) - * + * * @return attribute names in Vector */ public String[] getRequiredCreds() { @@ -229,7 +229,7 @@ public class PasswdUserDBAuthentication implements IAuthManager { /** * Get the list of configuration parameter names * required by this authentication manager. In this case, an empty list. - * + * * @return String array of configuration parameters. */ public String[] getConfigParams() { @@ -252,7 +252,7 @@ public class PasswdUserDBAuthentication implements IAuthManager { /** * gets the configuretion substore used by this authentication * manager - * + * * @return configuration store */ public IConfigStore getConfigStore() { @@ -261,7 +261,7 @@ public class PasswdUserDBAuthentication implements IAuthManager { /** * Log a message. - * + * * @param level The logging level. * @param msg The message to log. */ diff --git a/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java b/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java index 3f0d7a87b..183cebcfb 100644 --- a/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java +++ b/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java @@ -49,7 +49,7 @@ import com.netscape.cmscore.util.Debug; /** * SSL client based authentication. *

- * + * * @author chrisho * @version $Revision$, $Date$ */ @@ -224,7 +224,7 @@ public class SSLClientCertAuthentication implements IAuthManager { * Returns a list of configuration parameter names. * The list is passed to the configuration console so instances of * this implementation can be configured through the console. - * + * * @return String array of configuration parameter names. */ public String[] getConfigParams() { @@ -233,7 +233,7 @@ public class SSLClientCertAuthentication implements IAuthManager { /** * Returns array of required credentials for this authentication manager. - * + * * @return Array of required credentials. */ public String[] getRequiredCreds() { @@ -268,7 +268,7 @@ public class SSLClientCertAuthentication implements IAuthManager { /** * Gets the configuration substore used by this authentication manager - * + * * @return configuration store */ public IConfigStore getConfigStore() { diff --git a/base/common/src/com/netscape/cmscore/authentication/VerifiedCert.java b/base/common/src/com/netscape/cmscore/authentication/VerifiedCert.java index 173d69f89..0ada86e75 100644 --- a/base/common/src/com/netscape/cmscore/authentication/VerifiedCert.java +++ b/base/common/src/com/netscape/cmscore/authentication/VerifiedCert.java @@ -24,7 +24,7 @@ import com.netscape.certsrv.apps.CMS; /** * class storing verified certificate. - * + * * @version $Revision$, $Date$ */ diff --git a/base/common/src/com/netscape/cmscore/authentication/VerifiedCerts.java b/base/common/src/com/netscape/cmscore/authentication/VerifiedCerts.java index 52ce91fdf..01c455464 100644 --- a/base/common/src/com/netscape/cmscore/authentication/VerifiedCerts.java +++ b/base/common/src/com/netscape/cmscore/authentication/VerifiedCerts.java @@ -23,7 +23,7 @@ import netscape.security.x509.X509CertImpl; /** * class storing verified certificates. - * + * * @version $Revision$, $Date$ */ -- cgit