Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The TOKEN_APPLET_UPGRADE_* events have been merged into a single event with different outcomes. Also, it has been encapsulated into TokenAppletUpgradeEvent class. https://pagure.io/dogtagpki/issue/2656 Change-Id: Ifa34eacaa5a0da1c8026eb702e09828234d7f0f5 (cherry picked from commit c006503)
- Loading branch information
Showing
4 changed files
with
72 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
base/common/src/com/netscape/certsrv/logging/event/TokenAppletUpgradeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// --- 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) 2018 Red Hat, Inc. | ||
// All rights reserved. | ||
// --- END COPYRIGHT BLOCK --- | ||
package com.netscape.certsrv.logging.event; | ||
|
||
import com.netscape.certsrv.logging.SignedAuditEvent; | ||
|
||
public class TokenAppletUpgradeEvent extends SignedAuditEvent { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public final static String TOKEN_APPLET_UPGRADE_SUCCESS = | ||
"LOGGING_SIGNED_AUDIT_TOKEN_APPLET_UPGRADE_SUCCESS"; | ||
|
||
public final static String TOKEN_APPLET_UPGRADE_FAILURE = | ||
"LOGGING_SIGNED_AUDIT_TOKEN_APPLET_UPGRADE_FAILURE"; | ||
|
||
public TokenAppletUpgradeEvent( | ||
String messageID, | ||
String ip, | ||
String subjectID, | ||
String cuid, | ||
String msn, | ||
String outcome, | ||
String keyVersion, | ||
String oldAppletVersion, | ||
String newAppletVersion, | ||
String info) { | ||
|
||
super(messageID); | ||
|
||
setAttribute("IP", ip); | ||
setAttribute("SubjectID", subjectID); | ||
setAttribute("CUID", cuid); | ||
setAttribute("MSN", msn); | ||
setAttribute("Outcome", outcome); | ||
setAttribute("KeyVersion", keyVersion); | ||
setAttribute("oldAppletVersion", oldAppletVersion); | ||
setAttribute("newAppletVersion", newAppletVersion); | ||
setAttribute("Info", info); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters