use of org.xipki.audit.PciAuditEvent in project xipki by xipki.
the class CaManagerImpl method auditLogPciEvent.
private void auditLogPciEvent(boolean successful, String eventType) {
PciAuditEvent event = new PciAuditEvent(new Date());
event.setUserId("CA-SYSTEM");
event.setEventType(eventType);
event.setAffectedResource("CORE");
if (successful) {
event.setStatus(AuditStatus.SUCCESSFUL.name());
event.setLevel(AuditLevel.INFO);
} else {
event.setStatus(AuditStatus.FAILED.name());
event.setLevel(AuditLevel.ERROR);
}
auditServiceRegister.getAuditService().logEvent(event);
}
Aggregations