Package org.xipki.audit.services
Class EmbedAuditService
- java.lang.Object
-
- org.xipki.audit.services.EmbedAuditService
-
- All Implemented Interfaces:
AutoCloseable,AuditService
public class EmbedAuditService extends Object implements AuditService
The embedded audit service.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_FILEstatic 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(String conf)voidinit(String conf, org.xipki.password.PasswordResolver passwordResolver)voidlogEvent(AuditEvent event)Log audit event.voidlogEvent(PciAuditEvent event)Log PCI audit event.protected voidstoreLog(int eventType, AuditLevel level, String message)
-
-
-
Field Detail
-
KEY_FILE
public static final String KEY_FILE
- See Also:
- Constant Field Values
-
KEY_SIZE
public static final String KEY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(String conf)
- Specified by:
initin interfaceAuditService
-
init
public void init(String conf, org.xipki.password.PasswordResolver passwordResolver) throws org.xipki.password.PasswordResolverException, org.xipki.util.exception.InvalidConfException
- Specified by:
initin interfaceAuditService- Throws:
org.xipki.password.PasswordResolverExceptionorg.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, String message)
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-