summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/apps
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/certsrv/apps')
-rw-r--r--base/common/src/com/netscape/certsrv/apps/CMS.java12
-rw-r--r--base/common/src/com/netscape/certsrv/apps/ICMSEngine.java10
2 files changed, 22 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/apps/CMS.java b/base/common/src/com/netscape/certsrv/apps/CMS.java
index 4d4577777..00d2e0653 100644
--- a/base/common/src/com/netscape/certsrv/apps/CMS.java
+++ b/base/common/src/com/netscape/certsrv/apps/CMS.java
@@ -73,6 +73,7 @@ import com.netscape.certsrv.ldap.ELdapException;
import com.netscape.certsrv.ldap.ILdapAuthInfo;
import com.netscape.certsrv.ldap.ILdapConnFactory;
import com.netscape.certsrv.ldap.ILdapConnInfo;
+import com.netscape.certsrv.logging.IAuditor;
import com.netscape.certsrv.logging.ILogSubsystem;
import com.netscape.certsrv.logging.ILogger;
import com.netscape.certsrv.notification.IEmailFormProcessor;
@@ -288,6 +289,17 @@ public final class CMS {
}
/**
+ * Returns the auditor of the current server. The auditor can
+ * be used to audit critical informational or critical error
+ * messages.
+ *
+ * @return auditor
+ */
+ public static IAuditor getAuditor() {
+ return _engine.getAuditor();
+ }
+
+ /**
* Returns the signed audit logger of the current server. This logger can
* be used to log critical informational or critical error
* messages.
diff --git a/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java b/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java
index 41f4c348e..f11005c07 100644
--- a/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java
+++ b/base/common/src/com/netscape/certsrv/apps/ICMSEngine.java
@@ -64,6 +64,7 @@ import com.netscape.certsrv.ldap.ELdapException;
import com.netscape.certsrv.ldap.ILdapAuthInfo;
import com.netscape.certsrv.ldap.ILdapConnFactory;
import com.netscape.certsrv.ldap.ILdapConnInfo;
+import com.netscape.certsrv.logging.IAuditor;
import com.netscape.certsrv.logging.ILogger;
import com.netscape.certsrv.notification.IEmailFormProcessor;
import com.netscape.certsrv.notification.IEmailResolver;
@@ -187,6 +188,15 @@ public interface ICMSEngine extends ISubsystem {
public ILogger getLogger();
/**
+ * Returns the auditor of the current server. The auditor can
+ * be used to audit critical informational or critical error
+ * messages.
+ *
+ * @return auditor
+ */
+ public IAuditor getAuditor();
+
+ /**
* Returns the signed audit logger of the current server. This logger can
* be used to log critical informational or critical error
* messages.