Package org.xipki.audit.services
Class EmbedAuditService
- java.lang.Object
-
- org.xipki.audit.services.EmbedAuditService
-
- All Implemented Interfaces:
AuditService
public class EmbedAuditService extends java.lang.Object implements AuditService
The embedded audit service.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_FILEstatic java.lang.StringKEY_SIZE-
Fields inherited from interface org.xipki.audit.AuditService
AUDIT_EVENT, PCI_AUDIT_EVENT
-
-
Constructor Summary
Constructors Constructor Description EmbedAuditService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidinit(org.xipki.util.ConfPairs conf)voidlogEvent(AuditEvent event)Log audit event.voidlogEvent(PciAuditEvent event)Log PCI audit event.protected voidstoreLog(int eventType, AuditLevel level, java.lang.String message)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xipki.audit.AuditService
init
-
-
-
-
Field Detail
-
KEY_FILE
public static final java.lang.String KEY_FILE
- See Also:
- Constant Field Values
-
KEY_SIZE
public static final java.lang.String KEY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(org.xipki.util.ConfPairs conf) throws org.xipki.util.exception.InvalidConfException- Specified by:
initin interfaceAuditService- Throws:
org.xipki.util.exception.InvalidConfException
-
logEvent
public void logEvent(AuditEvent event)
Description copied from interface:AuditServiceLog audit event.- Specified by:
logEventin interfaceAuditService- Parameters:
event- Audit event. Must not benull-
-
logEvent
public void logEvent(PciAuditEvent event)
Description copied from interface:AuditServiceLog PCI audit event.- Specified by:
logEventin interfaceAuditService- Parameters:
event- Audit event. Must not benull-
-
storeLog
protected void storeLog(int eventType, AuditLevel level, java.lang.String message)
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfaceAuditService- Throws:
java.lang.Exception
-
-