summaryrefslogtreecommitdiffstats
path: root/base/common/src/com
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-04-20 10:20:06 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-04-24 20:43:35 +0200
commitaad80e8775eac61ed9eac2f3f94d2ec90207e827 (patch)
tree0833cbcb184b1a0bce4ecab3905a6bc02c064f94 /base/common/src/com
parent30d1575046065dbd79f537e5f819c405e45af0bc (diff)
Added RoleAssumeEvent.
A new RoleAssumeEvent class of has been added to encapsulate the ROLE_ASSUME events. https://pagure.io/dogtagpki/issue/2641 Change-Id: I12e47ea13198b6532b1fdfee2e20765c0cab15e9
Diffstat (limited to 'base/common/src/com')
-rw-r--r--base/common/src/com/netscape/certsrv/logging/event/RoleAssumeEvent.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/logging/event/RoleAssumeEvent.java b/base/common/src/com/netscape/certsrv/logging/event/RoleAssumeEvent.java
new file mode 100644
index 000000000..271589397
--- /dev/null
+++ b/base/common/src/com/netscape/certsrv/logging/event/RoleAssumeEvent.java
@@ -0,0 +1,39 @@
+// --- 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 RoleAssumeEvent extends AuditEvent {
+
+ private static final long serialVersionUID = 1L;
+
+ public RoleAssumeEvent(
+ String subjectID,
+ String outcome,
+ String groups) {
+
+ super(ROLE_ASSUME);
+
+ setParameters(new Object[] {
+ subjectID,
+ outcome,
+ groups
+ });
+ }
+}