summaryrefslogtreecommitdiffstats
path: root/pki/base/tks
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-01-11 12:57:53 -0500
committerAde Lee <alee@redhat.com>2012-01-11 13:49:04 -0500
commit10cfe7756e967ac91c66d33b392aeab9cf3780fb (patch)
treed5ac9b58442265d2ce5ef60e31f041ddacba1b4f /pki/base/tks
parentedcb24f65cc3700e75d0a1d14dc2483f210b0ee4 (diff)
downloadpki-10cfe7756e967ac91c66d33b392aeab9cf3780fb.tar.gz
pki-10cfe7756e967ac91c66d33b392aeab9cf3780fb.tar.xz
pki-10cfe7756e967ac91c66d33b392aeab9cf3780fb.zip
Formatting (no line wrap in comments or code)
Diffstat (limited to 'pki/base/tks')
-rw-r--r--pki/base/tks/src/com/netscape/tks/TKSAuthority.java70
1 files changed, 40 insertions, 30 deletions
diff --git a/pki/base/tks/src/com/netscape/tks/TKSAuthority.java b/pki/base/tks/src/com/netscape/tks/TKSAuthority.java
index 0dd6876ea..1987659c4 100644
--- a/pki/base/tks/src/com/netscape/tks/TKSAuthority.java
+++ b/pki/base/tks/src/com/netscape/tks/TKSAuthority.java
@@ -27,43 +27,47 @@ import com.netscape.certsrv.request.IRequestListener;
import com.netscape.certsrv.request.IRequestQueue;
public class TKSAuthority implements IAuthority, ISubsystem {
- protected ILogger mLogger = CMS.getLogger();
- private String mNickname = null;
- private ISubsystem mOwner;
- private IConfigStore mConfig = null;
- protected String mId = null;
- public static final String PROP_NICKNAME = "nickName";
-
- /**
+ protected ILogger mLogger = CMS.getLogger();
+ private String mNickname = null;
+ private ISubsystem mOwner;
+ private IConfigStore mConfig = null;
+ protected String mId = null;
+ public static final String PROP_NICKNAME = "nickName";
+
+ /**
* Retrieves the request queue for the Authority.
* <P>
+ *
* @return the request queue.
*/
public IRequestQueue getRequestQueue() {
return null;
}
+
/**
* Registers request completed class.
*/
public void registerRequestListener(IRequestListener listener) {
}
- /**
+ /**
* Registers pending request class.
*/
public void registerPendingListener(IRequestListener listener) {
}
- /**
+
+ /**
* log interface
*/
- public void log(int level, String msg) {
+ public void log(int level, String msg) {
mLogger.log(ILogger.EV_SYSTEM, ILogger.S_TKS,
- level, msg);
+ level, msg);
}
- /**
+
+ /**
* nickname of signing (id) cert
*/
- public void setNickname( String nickname ) {
+ public void setNickname(String nickname) {
mNickname = nickname;
}
@@ -71,14 +75,15 @@ public class TKSAuthority implements IAuthority, ISubsystem {
CMS.debug("Error: TKSAuthority::getNickname - nickname of signing (id) cert");
return mNickname;
}
+
public String getOfficialName() {
return "tks";
}
-
- /**
+
+ /**
* Initializes this subsystem.
* <P>
- *
+ *
* @param owner owner of this subsystem
* @param config configuration of this subsystem
* @exception EBaseException failed to initialize this RA
@@ -88,14 +93,15 @@ public class TKSAuthority implements IAuthority, ISubsystem {
mOwner = owner;
mConfig = config;
- //mNickname = mConfig.getString(PROP_NICKNAME);
- CMS.debug("TKS Authority (" +
- getId() + "): " + "Initialized Request Processor.");
+ //mNickname = mConfig.getString(PROP_NICKNAME);
+ CMS.debug("TKS Authority (" +
+ getId() + "): " + "Initialized Request Processor.");
}
- /**
+
+ /**
* Notifies this subsystem if owner is in running mode.
- *
+ *
* @exception EBaseException failed to start up
*/
public void startup() throws EBaseException {
@@ -105,42 +111,46 @@ public class TKSAuthority implements IAuthority, ISubsystem {
// of a subsystem within server.
}
+
/**
* Stops this system. The owner may call shutdown
* anytime after initialization.
* <P>
*/
- public void shutdown() {
+ public void shutdown() {
- getLogger().log(ILogger.EV_SYSTEM, ILogger.S_TKS,
- ILogger.LL_INFO, "TKSAuthority is stopped");
+ getLogger().log(ILogger.EV_SYSTEM, ILogger.S_TKS,
+ ILogger.LL_INFO, "TKSAuthority is stopped");
}
+
/**
* Returns the root configuration storage of this system.
* <P>
- *
+ *
* @return configuration store of this subsystem
*/
public IConfigStore getConfigStore() {
return mConfig;
}
+
public String getId() {
return mId;
}
- /**
+ /**
* Sets subsystem identifier.
- *
+ *
* @param id subsystem id
* @exception EBaseException failed to set id
*/
public void setId(String id) throws EBaseException {
mId = id;
}
- /**
+
+ /**
* Retrieves logger from escrow authority.
- *
+ *
* @return logger
*/
public ILogger getLogger() {