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 --- .../com/netscape/certsrv/kra/EKRAException.java | 12 ++--- .../src/com/netscape/certsrv/kra/IJoinShares.java | 2 +- .../certsrv/kra/IKeyRecoveryAuthority.java | 58 +++++++++++----------- .../src/com/netscape/certsrv/kra/IKeyService.java | 30 +++++------ .../com/netscape/certsrv/kra/IProofOfArchival.java | 14 +++--- .../src/com/netscape/certsrv/kra/IShare.java | 2 +- .../src/com/netscape/certsrv/kra/KRAResources.java | 2 +- .../com/netscape/certsrv/kra/ProofOfArchival.java | 28 +++++------ 8 files changed, 74 insertions(+), 74 deletions(-) (limited to 'base/common/src/com/netscape/certsrv/kra') diff --git a/base/common/src/com/netscape/certsrv/kra/EKRAException.java b/base/common/src/com/netscape/certsrv/kra/EKRAException.java index 3f23bfe78..a42e8f409 100644 --- a/base/common/src/com/netscape/certsrv/kra/EKRAException.java +++ b/base/common/src/com/netscape/certsrv/kra/EKRAException.java @@ -24,7 +24,7 @@ import com.netscape.certsrv.base.EBaseException; * exception for all the KRA specific exceptions. It is * associated with KRAResources. *

- * + * * @version $Revision$, $Date$ */ public class EKRAException extends EBaseException { @@ -42,7 +42,7 @@ public class EKRAException extends EBaseException { /** * Constructs a KRA exception. *

- * + * * @param msgFormat constant from KRAResources. */ public EKRAException(String msgFormat) { @@ -52,7 +52,7 @@ public class EKRAException extends EBaseException { /** * Constructs a KRA exception. *

- * + * * @param msgFormat constant from KRAResources. * @param param additional parameters to the message. */ @@ -63,7 +63,7 @@ public class EKRAException extends EBaseException { /** * Constructs a KRA exception. *

- * + * * @param msgFormat constant from KRAResources. * @param e embedded exception. */ @@ -74,7 +74,7 @@ public class EKRAException extends EBaseException { /** * Constructs a KRA exception. *

- * + * * @param msgFormat constant from KRAResources. * @param params additional parameters to the message. */ @@ -85,7 +85,7 @@ public class EKRAException extends EBaseException { /** * Returns the bundle file name. *

- * + * * @return name of bundle class associated with this exception. */ protected String getBundleName() { diff --git a/base/common/src/com/netscape/certsrv/kra/IJoinShares.java b/base/common/src/com/netscape/certsrv/kra/IJoinShares.java index e9a5ecae5..fca8b1c52 100644 --- a/base/common/src/com/netscape/certsrv/kra/IJoinShares.java +++ b/base/common/src/com/netscape/certsrv/kra/IJoinShares.java @@ -20,7 +20,7 @@ package com.netscape.certsrv.kra; /** * Use Java's reflection API to leverage CMS's * old Share and JoinShares implementations. - * + * * @deprecated * @version $Revision$ $Date$ */ diff --git a/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java b/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java index a7cc40507..acc3214bb 100644 --- a/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java +++ b/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java @@ -42,7 +42,7 @@ import com.netscape.certsrv.security.ITransportKeyUnit; * key recovery authority is responsibile for archiving * and recovering user encryption private keys. *

- * + * * @version $Revision$, $Date$ */ public interface IKeyRecoveryAuthority extends ISubsystem { @@ -69,7 +69,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Returns the name of this subsystem. *

- * + * * @return KRA name */ public X500Name getX500Name(); @@ -77,7 +77,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Retrieves KRA request repository. *

- * + * * @return request repository */ public IRequestQueue getRequestQueue(); @@ -91,7 +91,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Retrieves the Replica ID repository. - * + * * @return KRA's Replica ID repository */ public IReplicaIDRepository getReplicaRepository(); @@ -102,7 +102,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { * providing credentials. This feature is for enabling * user-based recovery operation. *

- * + * * @param cs list of agent credentials * @param on true if auto recovery state is on * @return current auto recovery state @@ -111,7 +111,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Returns the current auto recovery state. - * + * * @return true if auto recvoery state is on */ public boolean getAutoRecoveryState(); @@ -121,7 +121,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { * In distributed recovery mode, recovery agent login to the * agent interface and submit its credential for a particular * recovery operation. - * + * * @param id authorization identifier * @param creds list of credentials */ @@ -129,7 +129,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Removes a particular auto recovery operation. - * + * * @param id authorization identifier */ public void removeAutoRecovery(String id); @@ -138,28 +138,28 @@ public interface IKeyRecoveryAuthority extends ISubsystem { * Returns the number of required agents. In M-out-of-N * recovery schema, only M agents are required even there * are N agents. This method returns M. - * + * * @return number of required agents */ public int getNoOfRequiredAgents() throws EBaseException; /** * Sets the number of required recovery agents - * + * * @param number number of agents */ public void setNoOfRequiredAgents(int number) throws EBaseException; /** * Returns the current recovery identifier. - * + * * @return recovery identifier */ public String getRecoveryID(); /** * Returns a list of recovery identifiers. - * + * * @return list of auto recovery identifiers */ public Enumeration getAutoRecoveryIDs(); @@ -167,7 +167,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Returns the storage key unit that manages the * stoarge key. - * + * * @return storage key unit */ public IStorageKeyUnit getStorageKeyUnit(); @@ -175,14 +175,14 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Returns the transport key unit that manages the * transport key. - * + * * @return transport key unit */ public ITransportKeyUnit getTransportKeyUnit(); /** * Returns the token that generates user key pairs for supporting server-side keygen - * + * * @return keygen token */ public CryptoToken getKeygenToken(); @@ -190,7 +190,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Adds entropy to the token used for supporting server-side keygen * Parameters are set in the config file - * + * * @param logflag create log messages at info level to report entropy shortage */ public void addEntropy(boolean logflag); @@ -198,7 +198,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Returns the request listener that listens on * the request completion event. - * + * * @return request listener */ public IRequestListener getRequestInQListener(); @@ -213,35 +213,35 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Returns the nickname of the transport certificate. - * + * * @return transport certificate nickname. */ public String getNickname(); /** * Sets the nickname of the transport certificate. - * + * * @param str nickname */ public void setNickname(String str); /** * Returns the new nickname of the transport certifiate. - * + * * @return new nickname */ public String getNewNickName() throws EBaseException; /** * Sets the new nickname of the transport certifiate. - * + * * @param name new nickname */ public void setNewNickName(String name); /** * Logs event into key recovery authority logging. - * + * * @param level log level * @param msg log message */ @@ -253,7 +253,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { * framework will try to serialize all the attribute into * persistent storage. Things like passwords are not * desirable to be stored. - * + * * @param id request id * @return volatile requests */ @@ -261,7 +261,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Retrieves the request object. - * + * * @param id request id * @return volatile requests */ @@ -269,7 +269,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Destroys the request object. - * + * * @param id request id */ public void destroyVolatileRequest(RequestId id); @@ -279,7 +279,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Creates error for a specific recovery operation. - * + * * @param recoveryID recovery id * @param error error * @exception EBaseException failed to create error @@ -289,7 +289,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Retrieves error by recovery identifier. - * + * * @param recoveryID recovery id * @return error message */ @@ -298,7 +298,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Retrieves PKCS12 package by recovery identifier. - * + * * @param recoveryID recovery id * @return pkcs12 package in bytes */ @@ -307,7 +307,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { /** * Creates PKCS12 package in memory. - * + * * @param recoveryID recovery id * @param pk12 package in bytes */ diff --git a/base/common/src/com/netscape/certsrv/kra/IKeyService.java b/base/common/src/com/netscape/certsrv/kra/IKeyService.java index 13748f2d1..9118bc935 100644 --- a/base/common/src/com/netscape/certsrv/kra/IKeyService.java +++ b/base/common/src/com/netscape/certsrv/kra/IKeyService.java @@ -28,7 +28,7 @@ import com.netscape.certsrv.security.Credential; /** * An interface representing a recovery service. *

- * + * * @version $Revision$, $Date$ */ public interface IKeyService { @@ -36,7 +36,7 @@ public interface IKeyService { /** * Retrieves number of agent required to perform * key recovery operation. - * + * * @return number of required recovery agents * @exception EBaseException failed to retrieve value */ @@ -45,7 +45,7 @@ public interface IKeyService { /** * is async recovery request status APPROVED - * i.e. all required # of recovery agents approved - * + * * @param reqID request id * @return true if # of recovery required agents approved; false otherwise */ @@ -54,7 +54,7 @@ public interface IKeyService { /** * get async recovery request initiating agent - * + * * @param reqID request id * @return agentUID */ @@ -63,7 +63,7 @@ public interface IKeyService { /** * Initiate asynchronous key recovery - * + * * @param kid key identifier * @param cert certificate embedded in PKCS12 * @return requestId @@ -74,7 +74,7 @@ public interface IKeyService { /** * add approving agent in asynchronous key recovery - * + * * @param reqID request id * @param agentID agent id * @exception EBaseException failed to initiate async recovery @@ -84,7 +84,7 @@ public interface IKeyService { /** * Performs administrator-initiated key recovery. - * + * * @param kid key identifier * @param creds list of credentials (id and password) * @param pwd password to protect PKCS12 @@ -101,14 +101,14 @@ public interface IKeyService { * Async Recovers key for administrators. This method is * invoked by the agent operation of the key recovery servlet. *

- * + * *

- * + * * @param reqID request id * @param password password of the PKCS12 package * subsystem @@ -122,14 +122,14 @@ public interface IKeyService { /** * Retrieves recovery identifier. - * + * * @return recovery id */ public String getRecoveryID(); /** * Creates recovery parameters for the given recovery operation. - * + * * @param recoveryID recovery id * @return recovery parameters * @exception EBaseException failed to create @@ -139,7 +139,7 @@ public interface IKeyService { /** * Destroys recovery parameters for the given recovery operation. - * + * * @param recoveryID recovery id * @exception EBaseException failed to destroy */ @@ -148,7 +148,7 @@ public interface IKeyService { /** * Retrieves recovery parameters for the given recovery operation. - * + * * @param recoveryID recovery id * @return recovery parameters * @exception EBaseException failed to retrieve @@ -158,7 +158,7 @@ public interface IKeyService { /** * Adds password in the distributed recovery operation. - * + * * @param recoveryID recovery id * @param uid agent uid * @param pwd agent password @@ -169,7 +169,7 @@ public interface IKeyService { /** * Retrieves credentials in the distributed recovery operation. - * + * * @param recoveryID recovery id * @return agent's credentials * @exception EBaseException failed to retrieve diff --git a/base/common/src/com/netscape/certsrv/kra/IProofOfArchival.java b/base/common/src/com/netscape/certsrv/kra/IProofOfArchival.java index 20ac336e5..119e199bd 100644 --- a/base/common/src/com/netscape/certsrv/kra/IProofOfArchival.java +++ b/base/common/src/com/netscape/certsrv/kra/IProofOfArchival.java @@ -24,7 +24,7 @@ import java.util.Date; * An interface represents a proof of archival. *

* Here is the ASN1 definition of a proof of escrow: - * + * *

  * ProofOfArchival ::= SIGNED {
  *   SEQUENCE {
@@ -38,42 +38,42 @@ import java.util.Date;
  * }
  * 
*

- * + * * @version $Revision$, $Date$ */ public interface IProofOfArchival { /** * Retrieves version of this proof. - * + * * @return version */ public BigInteger getVersion(); /** * Retrieves the serial number. - * + * * @return serial number */ public BigInteger getSerialNumber(); /** * Retrieves the subject name. - * + * * @return subject name */ public String getSubjectName(); /** * Retrieves the issuer name. - * + * * @return issuer name */ public String getIssuerName(); /** * Returns the beginning of the escrowed perioid. - * + * * @return date of archival */ public Date getDateOfArchival(); diff --git a/base/common/src/com/netscape/certsrv/kra/IShare.java b/base/common/src/com/netscape/certsrv/kra/IShare.java index 19e7d7ce2..14d9952b8 100644 --- a/base/common/src/com/netscape/certsrv/kra/IShare.java +++ b/base/common/src/com/netscape/certsrv/kra/IShare.java @@ -20,7 +20,7 @@ package com.netscape.certsrv.kra; /** * Use Java's reflection API to leverage CMS's * old Share and JoinShares implementations. - * + * * @deprecated * @version $Revision$ $Date$ */ diff --git a/base/common/src/com/netscape/certsrv/kra/KRAResources.java b/base/common/src/com/netscape/certsrv/kra/KRAResources.java index 14b686e63..7eecf9ead 100644 --- a/base/common/src/com/netscape/certsrv/kra/KRAResources.java +++ b/base/common/src/com/netscape/certsrv/kra/KRAResources.java @@ -22,7 +22,7 @@ import java.util.ListResourceBundle; /** * A class represents a resource bundle for KRA subsystem. *

- * + * * @version $Revision$, $Date$ */ public class KRAResources extends ListResourceBundle { diff --git a/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java b/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java index df05c882f..7774ca400 100644 --- a/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java +++ b/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java @@ -51,7 +51,7 @@ import com.netscape.certsrv.dbs.IDBObj; * presented. *

* Here is the ASN1 definition of a proof of escrow: - * + * *

  * ProofOfEscrow ::= SIGNED {
  *   SEQUENCE {
@@ -65,7 +65,7 @@ import com.netscape.certsrv.dbs.IDBObj;
  * }
  * 
*

- * + * * @author thomask * @version $Revision$, $Date$ */ @@ -105,7 +105,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Constructs a proof of escrow. *

- * + * * @param serialNo serial number of proof * @param subject subject name * @param issuer issuer name @@ -123,7 +123,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Constructs proof of escrow from input stream. *

- * + * * @param in encoding source * @exception EBaseException failed to decode */ @@ -134,7 +134,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Sets an attribute value. *

- * + * * @param name attribute name * @param obj attribute value * @exception EBaseException failed to set attribute @@ -159,7 +159,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Retrieves the value of an named attribute. *

- * + * * @param name attribute name * @return attribute value * @exception EBaseException failed to get attribute @@ -184,7 +184,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Deletes an attribute. *

- * + * * @param name attribute name * @exception EBaseException failed to get attribute */ @@ -196,7 +196,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Retrieves a list of possible attribute names. *

- * + * * @return a list of names */ public Enumeration getElements() { @@ -205,7 +205,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Retrieves serializable attribute names. - * + * * @return a list of serializable attribute names */ public Enumeration getSerializableAttrNames() { @@ -215,7 +215,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Retrieves version of this proof. *

- * + * * @return version */ public BigInteger getVersion() { @@ -225,7 +225,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Retrieves the serial number. *

- * + * * @return serial number */ public BigInteger getSerialNumber() { @@ -235,7 +235,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Retrieves the subject name. *

- * + * * @return subject name */ public String getSubjectName() { @@ -245,7 +245,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Retrieves the issuer name. *

- * + * * @return issuer name */ public String getIssuerName() { @@ -255,7 +255,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { /** * Returns the beginning of the escrowed perioid. *

- * + * * @return date of archival */ public Date getDateOfArchival() { -- cgit