Class MemoryBasedAuditEventRepository
java.lang.Object
se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
se.swedenconnect.bankid.idp.audit.MemoryBasedAuditEventRepository
- All Implemented Interfaces:
DisposableBean
,AuditEventRepository
@Deprecated(forRemoval=true,
since="1.1.3")
public class MemoryBasedAuditEventRepository
extends AbstractBankIdAuditEventRepository
Deprecated, for removal: This API element is subject to removal in a future version.
A memory based
AuditEventRepository
.- Author:
- Martin Lindström, Felix Hellman
-
Field Summary
Fields inherited from class se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
DEFAULT_SUPPORTED_EVENTS
-
Constructor Summary
ConstructorDescriptionMemoryBasedAuditEventRepository
(String logFile, AuditEventMapper mapper, List<String> supportedEvents) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEvent
(AuditEvent event) Deprecated, for removal: This API element is subject to removal in a future version.Logs an event.Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
add, destroy, getAuditEventMapper
-
Constructor Details
-
MemoryBasedAuditEventRepository
public MemoryBasedAuditEventRepository(String logFile, AuditEventMapper mapper, List<String> supportedEvents) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
logFile
- the log file including its path (ifnull
, no file logging will be performed)mapper
- mapper for creating JSONsupportedEvents
- the supported events (ifnull
,AbstractBankIdAuditEventRepository.DEFAULT_SUPPORTED_EVENTS
will be used)- Throws:
IOException
- if file logging can not be initialized
-
-
Method Details
-
find
Deprecated, for removal: This API element is subject to removal in a future version. -
addEvent
Deprecated, for removal: This API element is subject to removal in a future version.Logs an event.- Specified by:
addEvent
in classAbstractBankIdAuditEventRepository
- Parameters:
event
- the audit event to log
-
MemoryBasedAuditEventRepository
instead