diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2017-05-26 00:46:53 +0200 |
|---|---|---|
| committer | Endi S. Dewata <edewata@redhat.com> | 2017-05-26 22:12:48 +0200 |
| commit | 33838ebaffcdf121c4167379f0c917b5b5b67d0e (patch) | |
| tree | a9b0ffb5c54754de1727131eba75649a8676366c /base/common | |
| parent | 37e6ba6d1fb24694c2744adbc27c78b749d7e35d (diff) | |
| download | pki-33838ebaffcdf121c4167379f0c917b5b5b67d0e.tar.gz pki-33838ebaffcdf121c4167379f0c917b5b5b67d0e.tar.xz pki-33838ebaffcdf121c4167379f0c917b5b5b67d0e.zip | |
Added FULL_CRL_PUBLISHING audit event.
A new FULL_CRL_PUBLISHING audit event has been added which will
be generated when full CRL publishing is complete.
https://pagure.io/dogtagpki/issue/2651
Change-Id: I4461b03f4afd300b65e9d12c7d0bfa935b4e7082
Diffstat (limited to 'base/common')
| -rw-r--r-- | base/common/src/com/netscape/certsrv/logging/event/FullCRLPublishingEvent.java | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/event/FullCRLPublishingEvent.java b/base/common/src/com/netscape/certsrv/logging/event/FullCRLPublishingEvent.java new file mode 100644 index 000000000..a3764c0a2 --- /dev/null +++ b/base/common/src/com/netscape/certsrv/logging/event/FullCRLPublishingEvent.java @@ -0,0 +1,63 @@ +// --- 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 java.math.BigInteger; + +import com.netscape.certsrv.logging.AuditEvent; +import com.netscape.certsrv.logging.ILogger; + +public class FullCRLPublishingEvent extends AuditEvent { + + private static final long serialVersionUID = 1L; + + public final static String LOGGING_PROPERTY = + "LOGGING_SIGNED_AUDIT_FULL_CRL_PUBLISHING"; + + public FullCRLPublishingEvent( + String subjectID, + BigInteger crlNumber) { + + super(LOGGING_PROPERTY); + + setAttribute("CRLnum", crlNumber); + + setParameters(new Object[] { + subjectID, + ILogger.SUCCESS, + getAttributeList() + }); + } + + public FullCRLPublishingEvent( + String subjectID, + BigInteger crlNumber, + String reason) { + + super(LOGGING_PROPERTY); + + setAttribute("CRLnum", crlNumber); + setAttribute("FailureReason", reason); + + setParameters(new Object[] { + subjectID, + ILogger.FAILURE, + getAttributeList() + }); + } +} |
