Package org.xipki.audit.services
Class NoopAuditService
- java.lang.Object
-
- org.xipki.audit.services.NoopAuditService
-
- All Implemented Interfaces:
AutoCloseable,AuditService
public class NoopAuditService extends Object implements AuditService
The No-Operation audit service. The events will be ignored.- Since:
- 6.0.0
- Author:
- Lijun Liao (xipki)
-
-
Field Summary
-
Fields inherited from interface org.xipki.audit.AuditService
AUDIT_EVENT, PCI_AUDIT_EVENT
-
-
Constructor Summary
Constructors Constructor Description NoopAuditService()
-
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.
-
-
-
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
- Specified by:
initin interfaceAuditService- Throws:
org.xipki.password.PasswordResolverException
-
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-
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-