summaryrefslogtreecommitdiffstats
path: root/base/common/src/com
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-04-26 20:04:46 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-05-16 03:18:20 +0200
commitcec9efefe027ed4e7592827889eb3b487e7e485a (patch)
tree15f5508877f5f29a7097904102fb64fbc692bc52 /base/common/src/com
parent3abf731d9e6f02ac8d315978d31c28c2f9c85db9 (diff)
downloadpki-cec9efefe027ed4e7592827889eb3b487e7e485a.tar.gz
pki-cec9efefe027ed4e7592827889eb3b487e7e485a.tar.xz
pki-cec9efefe027ed4e7592827889eb3b487e7e485a.zip
Added ConfigTrustedPublicKeyEvent.
A new ConfigTrustedPublicKeyEvent class of has been added to encapsulate the CONFIG_TRUSTED_PUBLIC_KEY events. https://pagure.io/dogtagpki/issue/2641 Change-Id: I2fb4b46dfd63daf3c0c08dc08b3dbac9108ec908
Diffstat (limited to 'base/common/src/com')
-rw-r--r--base/common/src/com/netscape/certsrv/logging/AuditEvent.java2
-rw-r--r--base/common/src/com/netscape/certsrv/logging/event/ConfigTrustedPublicKeyEvent.java42
2 files changed, 42 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/AuditEvent.java b/base/common/src/com/netscape/certsrv/logging/AuditEvent.java
index 9ba927123..ff5d344d9 100644
--- a/base/common/src/com/netscape/certsrv/logging/AuditEvent.java
+++ b/base/common/src/com/netscape/certsrv/logging/AuditEvent.java
@@ -63,8 +63,6 @@ public class AuditEvent implements IBundleLogEvent {
"LOGGING_SIGNED_AUDIT_CONFIG_SIGNED_AUDIT_3";
public final static String CONFIG_ENCRYPTION =
"LOGGING_SIGNED_AUDIT_CONFIG_ENCRYPTION_3";
- public final static String CONFIG_TRUSTED_PUBLIC_KEY =
- "LOGGING_SIGNED_AUDIT_CONFIG_TRUSTED_PUBLIC_KEY_3";
public final static String CONFIG_DRM =
"LOGGING_SIGNED_AUDIT_CONFIG_DRM_3";
public final static String SELFTESTS_EXECUTION =
diff --git a/base/common/src/com/netscape/certsrv/logging/event/ConfigTrustedPublicKeyEvent.java b/base/common/src/com/netscape/certsrv/logging/event/ConfigTrustedPublicKeyEvent.java
new file mode 100644
index 000000000..b0dd78140
--- /dev/null
+++ b/base/common/src/com/netscape/certsrv/logging/event/ConfigTrustedPublicKeyEvent.java
@@ -0,0 +1,42 @@
+// --- BEGIN COPYRIGHT BLOCK ---
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; version 2 of the License.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this program; if not, write to the Free Software Foundation, Inc.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+//
+// (C) 2017 Red Hat, Inc.
+// All rights reserved.
+// --- END COPYRIGHT BLOCK ---
+package com.netscape.certsrv.logging.event;
+
+import com.netscape.certsrv.logging.AuditEvent;
+
+public class ConfigTrustedPublicKeyEvent extends AuditEvent {
+
+ private static final long serialVersionUID = 1L;
+
+ public final static String LOGGING_PROPERTY =
+ "LOGGING_SIGNED_AUDIT_CONFIG_TRUSTED_PUBLIC_KEY_3";
+
+ public ConfigTrustedPublicKeyEvent(
+ String subjectID,
+ String outcome,
+ String params) {
+
+ super(LOGGING_PROPERTY);
+
+ setParameters(new Object[] {
+ subjectID,
+ outcome,
+ params
+ });
+ }
+}