summaryrefslogtreecommitdiffstats
path: root/pki/base/tks/src/com/netscape/tks/TKSAuthority.java
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-01-09 23:32:31 -0500
committerAde Lee <alee@redhat.com>2012-01-09 23:32:31 -0500
commit466533710c179f62865e08b3031748072a0247a3 (patch)
tree4c04c20d50239be26ba8319076de90226526a542 /pki/base/tks/src/com/netscape/tks/TKSAuthority.java
parentc9e3c48de53fce6908f625f40ac2b2f75d66b5a1 (diff)
downloadpki-466533710c179f62865e08b3031748072a0247a3.tar.gz
pki-466533710c179f62865e08b3031748072a0247a3.tar.xz
pki-466533710c179f62865e08b3031748072a0247a3.zip
Formatting (no wrap)
Diffstat (limited to 'pki/base/tks/src/com/netscape/tks/TKSAuthority.java')
-rw-r--r--pki/base/tks/src/com/netscape/tks/TKSAuthority.java74
1 files changed, 42 insertions, 32 deletions
diff --git a/pki/base/tks/src/com/netscape/tks/TKSAuthority.java b/pki/base/tks/src/com/netscape/tks/TKSAuthority.java
index 0dd6876e..2c8142a2 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.
+ * 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() {