diff options
author | Ade Lee <alee@redhat.com> | 2017-05-24 22:49:24 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2017-05-25 10:30:12 -0400 |
commit | c88ad697138778c597cf8ce361f8ee1761bee0ab (patch) | |
tree | 606d5d421807409c2395a917626591d2dcfcf6f9 /base/common/src/com/netscape | |
parent | f3cc4462e3fd353a78c6a174c93ef3f81c014ce8 (diff) | |
download | pki-c88ad697138778c597cf8ce361f8ee1761bee0ab.tar.gz pki-c88ad697138778c597cf8ce361f8ee1761bee0ab.tar.xz pki-c88ad697138778c597cf8ce361f8ee1761bee0ab.zip |
Encapsulate key status change audit logs
Change-Id: I57b30cdff571056d0a95436858308872a8dc007b
Diffstat (limited to 'base/common/src/com/netscape')
-rw-r--r-- | base/common/src/com/netscape/certsrv/logging/AuditEvent.java | 3 | ||||
-rw-r--r-- | base/common/src/com/netscape/certsrv/logging/event/SecurityDataStatusChangeEvent.java | 49 |
2 files changed, 49 insertions, 3 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/AuditEvent.java b/base/common/src/com/netscape/certsrv/logging/AuditEvent.java index beedb9fb9..348ea09dc 100644 --- a/base/common/src/com/netscape/certsrv/logging/AuditEvent.java +++ b/base/common/src/com/netscape/certsrv/logging/AuditEvent.java @@ -164,9 +164,6 @@ public class AuditEvent implements IBundleLogEvent { public final static String CONFIG_SERIAL_NUMBER = "LOGGING_SIGNED_AUDIT_CONFIG_SERIAL_NUMBER_1"; - public final static String KEY_STATUS_CHANGE = - "LOGGING_SIGNED_AUDIT_KEY_STATUS_CHANGE_6"; - public final static String TOKEN_CERT_ENROLLMENT = "LOGGING_SIGNED_AUDIT_TOKEN_CERT_ENROLLMENT_9"; public final static String TOKEN_CERT_RENEWAL = diff --git a/base/common/src/com/netscape/certsrv/logging/event/SecurityDataStatusChangeEvent.java b/base/common/src/com/netscape/certsrv/logging/event/SecurityDataStatusChangeEvent.java new file mode 100644 index 000000000..082516c02 --- /dev/null +++ b/base/common/src/com/netscape/certsrv/logging/event/SecurityDataStatusChangeEvent.java @@ -0,0 +1,49 @@ +// --- 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.dbs.keydb.KeyId; +import com.netscape.certsrv.logging.AuditEvent; + +public class SecurityDataStatusChangeEvent extends AuditEvent { + + private static final long serialVersionUID = 1L; + + private static final String LOGGING_PROPERTY = + "LOGGING_SIGNED_AUDIT_KEY_STATUS_CHANGE"; + + public SecurityDataStatusChangeEvent( + String subjectID, + String outcome, + KeyId keyID, + String oldStatus, + String newStatus, + String info) { + + super(LOGGING_PROPERTY); + + setParameters(new Object[] { + subjectID, + outcome, + keyID, + oldStatus, + newStatus, + info + }); + } +}
\ No newline at end of file |