summaryrefslogtreecommitdiffstats
path: root/base/ocsp/src
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-05 14:49:11 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-09 10:03:25 -0500
commit7c7b9d023cd466c1771068badc020dab36beb553 (patch)
tree178877eb83e25336be7577953945fbdb0b9e1a15 /base/ocsp/src
parentda1e6e2f49f66fd46c8039ff1aa4386309fba8f4 (diff)
downloadpki-7c7b9d023cd466c1771068badc020dab36beb553.tar.gz
pki-7c7b9d023cd466c1771068badc020dab36beb553.tar.xz
pki-7c7b9d023cd466c1771068badc020dab36beb553.zip
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
Diffstat (limited to 'base/ocsp/src')
-rw-r--r--base/ocsp/src/com/netscape/ocsp/EOCSPException.java2
-rw-r--r--base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java36
-rw-r--r--base/ocsp/src/com/netscape/ocsp/OCSPResources.java2
-rw-r--r--base/ocsp/src/com/netscape/ocsp/SigningUnit.java8
4 files changed, 24 insertions, 24 deletions
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.
* <P>
- *
+ *
* @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.
* <P>
- *
+ *
* @author lhsiao
* @version $Revision$, $Date$
*/
@@ -118,7 +118,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem,
* Initializes this subsystem with the given configuration
* store.
* <P>
- *
+ *
* @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.
* <P>
- *
+ *
* @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
* <P>
- *
+ *
* @return request identifier
*/
public ISigningUnit getSigningUnit() {
@@ -488,7 +488,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem,
/**
* Retrieves the request queue for the Authority.
* <P>
- *
+ *
* @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.
* <P>
- *
+ *
* @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);