Class AbstractBankIdAuditEventRepository
java.lang.Object
se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
- All Implemented Interfaces:
DisposableBean
,AuditEventRepository
- Direct Known Subclasses:
MemoryBasedAuditEventRepository
,RedisListAuditEventRepository
,RedisTimeSeriesAuditEventRepository
@Deprecated(forRemoval=true,
since="1.1.3")
public abstract class AbstractBankIdAuditEventRepository
extends Object
implements AuditEventRepository, DisposableBean
Deprecated, for removal: This API element is subject to removal in a future version.
Use the Audit support from the SAML IdP project instead
The base
AuditEventRepository
for the BankID IdP.- Author:
- Martin Lindström, Felix Hellman
-
Field Summary
Modifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.The events that we support by default. -
Constructor Summary
ConstructorDescriptionAbstractBankIdAuditEventRepository
(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 TypeMethodDescriptionfinal void
add
(AuditEvent event) Deprecated, for removal: This API element is subject to removal in a future version.protected abstract void
addEvent
(AuditEvent event) Deprecated, for removal: This API element is subject to removal in a future version.Logs an event.void
destroy()
Deprecated, for removal: This API element is subject to removal in a future version.protected AuditEventMapper
Deprecated, for removal: This API element is subject to removal in a future version.Returns the audit event mapper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.audit.AuditEventRepository
find
-
Field Details
-
DEFAULT_SUPPORTED_EVENTS
Deprecated, for removal: This API element is subject to removal in a future version.The events that we support by default.
-
-
Constructor Details
-
AbstractBankIdAuditEventRepository
public AbstractBankIdAuditEventRepository(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
,DEFAULT_SUPPORTED_EVENTS
will be used)- Throws:
IOException
- if file logging can not be initialized
-
-
Method Details
-
add
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
add
in interfaceAuditEventRepository
-
addEvent
Deprecated, for removal: This API element is subject to removal in a future version.Logs an event.- Parameters:
event
- the audit event to log
-
destroy
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-
getAuditEventMapper
Deprecated, for removal: This API element is subject to removal in a future version.Returns the audit event mapper.- Returns:
- the
AuditEventMapper
-