Search in sources :

Example 1 with PciAuditEvent

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);
}
Also used : PciAuditEvent(org.xipki.audit.PciAuditEvent) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 PciAuditEvent (org.xipki.audit.PciAuditEvent)1