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 --- .../ocsp/src/com/netscape/ocsp/EOCSPException.java | 2 +- base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java | 36 +++++++++++----------- base/ocsp/src/com/netscape/ocsp/OCSPResources.java | 2 +- base/ocsp/src/com/netscape/ocsp/SigningUnit.java | 8 ++--- 4 files changed, 24 insertions(+), 24 deletions(-) (limited to 'base/ocsp/src/com/netscape') diff --git a/base/ocsp/src/com/netscape/ocsp/EOCSPException.java b/base/ocsp/src/com/netscape/ocsp/EOCSPException.java index 231ab2867..1c878ad75 100644 --- a/base/ocsp/src/com/netscape/ocsp/EOCSPException.java +++ b/base/ocsp/src/com/netscape/ocsp/EOCSPException.java @@ -22,7 +22,7 @@ import com.netscape.certsrv.base.EBaseException; /** * A class represents a OCSP exception. *

- * + * * @version $Revision$, $Date$ */ public class EOCSPException extends EBaseException { diff --git a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java index f009bd56f..8d2176c83 100644 --- a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java +++ b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java @@ -70,7 +70,7 @@ import com.netscape.cmsutil.ocsp.ResponseData; * A class represents a Certificate Authority that is * responsible for certificate specific operations. *

- * + * * @author lhsiao * @version $Revision$, $Date$ */ @@ -118,7 +118,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, * Initializes this subsystem with the given configuration * store. *

- * + * * @param owner owner of this subsystem * @param config configuration store * @exception EBaseException failed to initialize @@ -273,7 +273,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, } else if (alg.getOID().equals(MD5)) { return "MD5"; } else if (alg.getOID().equals(SHA1)) { - return "SHA1"; // 1.3.14.3.2.26 + return "SHA1"; // 1.3.14.3.2.26 } else { return null; } @@ -394,7 +394,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * Returns the root configuration storage of this system. *

- * + * * @return configuration store of this subsystem */ public IConfigStore getConfigStore() { @@ -407,7 +407,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * logs a message in the CA area. - * + * * @param level the debug level. * @param msg the message to debug. */ @@ -478,7 +478,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * Returns default signing unit used by this CA *

- * + * * @return request identifier */ public ISigningUnit getSigningUnit() { @@ -488,7 +488,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * Retrieves the request queue for the Authority. *

- * + * * @return the request queue. */ public IRequestQueue getRequestQueue() { @@ -544,7 +544,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, * try { * log(ILogger.LL_INFO, "start OCSP request"); * TBSRequest tbsReq = request.getTBSRequest(); - * + * * Vector singleResponses = new Vector(); * for (int i = 0; i < tbsReq.getRequestCount(); i++) * { @@ -554,25 +554,25 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, * SingleResponse sr = p.process(cid); * singleResponses.addElement(sr); * } - * - * + * + * * SingleResponse res[] = new SingleResponse[singleResponses.size()]; * singleResponses.copyInto(res); - * + * * X500Name name = getName(); * Name.Template nameTemplate = new Name.Template(); * NameID rid = new NameID((Name)nameTemplate.decode( * new ByteArrayInputStream(name.getEncoded()))); * ResponseData rd = new ResponseData(rid, new GeneralizedTime( * CMS.getCurrentDate()), res); - * + * * BasicOCSPResponse basicRes = sign(rd); - * + * * OCSPResponse response = new OCSPResponse( * OCSPResponseStatus.SUCCESSFUL, * new ResponseBytes(ResponseBytes.OCSP_BASIC, * new OCTET_STRING(ASN1Util.encode(basicRes)))); - * + * * log(ILogger.LL_INFO, "done OCSP request"); * return response; * } catch (Exception e) { @@ -584,7 +584,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * Returns the in-memory count of the processed OCSP requests. - * + * * @return number of processed OCSP requests in memory */ public long getNumOCSPRequest() { @@ -594,7 +594,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * Returns the in-memory time (in mini-second) of * the processed time for OCSP requests. - * + * * @return processed times for OCSP requests */ public long getOCSPRequestTotalTime() { @@ -604,7 +604,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * Returns the in-memory time (in mini-second) of * the signing time for OCSP requests. - * + * * @return processed times for OCSP requests */ public long getOCSPTotalSignTime() { @@ -618,7 +618,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, /** * Returns the total data signed * for OCSP requests. - * + * * @return processed times for OCSP requests */ public long getOCSPTotalData() { diff --git a/base/ocsp/src/com/netscape/ocsp/OCSPResources.java b/base/ocsp/src/com/netscape/ocsp/OCSPResources.java index 7fb1e5a86..fcca5c4a7 100644 --- a/base/ocsp/src/com/netscape/ocsp/OCSPResources.java +++ b/base/ocsp/src/com/netscape/ocsp/OCSPResources.java @@ -22,7 +22,7 @@ import java.util.ListResourceBundle; /** * A class represents a resource bundle for OCSP subsystem. *

- * + * * @version $Revision$ $Date$ */ public class OCSPResources extends ListResourceBundle { diff --git a/base/ocsp/src/com/netscape/ocsp/SigningUnit.java b/base/ocsp/src/com/netscape/ocsp/SigningUnit.java index 27d4e5c9b..4b6e7da75 100644 --- a/base/ocsp/src/com/netscape/ocsp/SigningUnit.java +++ b/base/ocsp/src/com/netscape/ocsp/SigningUnit.java @@ -50,7 +50,7 @@ import com.netscape.cmsutil.util.Cert; /** * OCSP signing unit based on JSS. - * + * * $Revision$ $Date$ */ @@ -198,10 +198,10 @@ public final class SigningUnit implements ISigningUnit { /** * Check if the signing algorithm name is supported and valid for this * signing unit's token and key. - * + * * @param algname a signing algorithm name from JCA. * @return the mapped JSS signature algorithm object. - * + * * @exception EBaseException if signing algorithm is not supported. */ public SignatureAlgorithm checkSigningAlgorithmFromName(String algname) @@ -252,7 +252,7 @@ public final class SigningUnit implements ISigningUnit { signAlg = checkSigningAlgorithmFromName(algname); } - // XXX use a pool of signers based on alg ? + // XXX use a pool of signers based on alg ? // XXX Map algor. name to id. hack: use hardcoded define for now. CMS.debug( "Getting algorithm context for " + algname + " " + signAlg); -- cgit