diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2017-04-20 16:49:28 +0200 |
|---|---|---|
| committer | Endi S. Dewata <edewata@redhat.com> | 2017-04-24 20:41:19 +0200 |
| commit | 30d1575046065dbd79f537e5f819c405e45af0bc (patch) | |
| tree | 3043907073e9e092763cf5fa8570b485d24dde28 /base/common/src | |
| parent | fdcb514b0711f10eab47c81837138192207e44b4 (diff) | |
| download | pki-30d1575046065dbd79f537e5f819c405e45af0bc.tar.gz pki-30d1575046065dbd79f537e5f819c405e45af0bc.tar.xz pki-30d1575046065dbd79f537e5f819c405e45af0bc.zip | |
Added AuthzFailEvent.
A new AuthzFailEvent class of has been added to encapsulate the
AUTHZ_FAIL events.
https://pagure.io/dogtagpki/issue/2641
Change-Id: Id4ab9bd889a1a9314264c0ef2ff7b2389aed8f9c
Diffstat (limited to 'base/common/src')
| -rw-r--r-- | base/common/src/com/netscape/certsrv/logging/event/AuthzFailEvent.java | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/event/AuthzFailEvent.java b/base/common/src/com/netscape/certsrv/logging/event/AuthzFailEvent.java new file mode 100644 index 000000000..1e4491954 --- /dev/null +++ b/base/common/src/com/netscape/certsrv/logging/event/AuthzFailEvent.java @@ -0,0 +1,59 @@ +// --- 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 AuthzFailEvent extends AuditEvent { + + private static final long serialVersionUID = 1L; + + public AuthzFailEvent( + String subjectID, + String outcome, + String aclResource, + String operation) { + + super(AUTHZ_FAIL); + + setParameters(new Object[] { + subjectID, + outcome, + aclResource, + operation + }); + } + + public AuthzFailEvent( + String subjectID, + String outcome, + String aclResource, + String operation, + String info) { + + super(AUTHZ_FAIL_INFO); + + setParameters(new Object[] { + subjectID, + outcome, + aclResource, + operation, + info + }); + } +} |
