diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2017-04-20 10:07:44 +0200 |
|---|---|---|
| committer | Endi S. Dewata <edewata@redhat.com> | 2017-04-24 20:40:55 +0200 |
| commit | 0de8be3084c4ccf23c2850331f86fc067e7c8383 (patch) | |
| tree | 5f69e6ea6cef3e8c7e795d17968df2f9c194d9a3 /base/common | |
| parent | ce3304834dbb3e4d001ecbbfc1af61044ae7a74c (diff) | |
| download | pki-0de8be3084c4ccf23c2850331f86fc067e7c8383.tar.gz pki-0de8be3084c4ccf23c2850331f86fc067e7c8383.tar.xz pki-0de8be3084c4ccf23c2850331f86fc067e7c8383.zip | |
Added AuthFailEvent.
A new AuthFailEvent class of has been added to encapsulate the
AUTH_FAIL events.
https://pagure.io/dogtagpki/issue/2641
Change-Id: I870398f6a56df007c9520e50947a7b3c85baf79b
Diffstat (limited to 'base/common')
| -rw-r--r-- | base/common/src/com/netscape/certsrv/logging/event/AuthFailEvent.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/event/AuthFailEvent.java b/base/common/src/com/netscape/certsrv/logging/event/AuthFailEvent.java new file mode 100644 index 000000000..a2c7d8d4f --- /dev/null +++ b/base/common/src/com/netscape/certsrv/logging/event/AuthFailEvent.java @@ -0,0 +1,41 @@ +// --- 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 AuthFailEvent extends AuditEvent { + + private static final long serialVersionUID = 1L; + + public AuthFailEvent( + String subjectID, + String outcome, + String authManagerID, + String attemptedUID) { + + super(AUTH_FAIL); + + setParameters(new Object[] { + subjectID, + outcome, + authManagerID, + attemptedUID + }); + } +} |
