Class AuditLoggerConfigurationProperties
java.lang.Object
se.swedenconnect.signservice.config.audit.AuditLoggerConfigurationProperties
- All Implemented Interfaces:
HandlerConfigurationProperties<AuditLogger>
public class AuditLoggerConfigurationProperties
extends Object
implements HandlerConfigurationProperties<AuditLogger>
Properties for audit logger configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConfiguration for using Spring Boot's actuator for audit logging.Configuration for audit logging using callbacks to a listener.Gets the configuration that points to an already configured handler bean.getFile()
Configuration for file audit logging.An handler configuration properties class may have setters for several types of a particular types of a handler.Gets the handler configuration for the given name.Configuration for audit logging using an underlying log system.void
setActuator
(ActuatorAuditLoggerConfiguration actuator) Configuration for using Spring Boot's actuator for audit logging.void
setCallback
(CallbackAuditLoggerConfiguration callback) Configuration for audit logging using callbacks to a listener.void
Assigns the configuration that points to an already configured handler bean.void
Configuration for file audit logging.void
setLogSystem
(LogSystemAuditLoggerConfiguration logSystem) Configuration for audit logging using an underlying log system.
-
Constructor Details
-
AuditLoggerConfigurationProperties
public AuditLoggerConfigurationProperties()
-
-
Method Details
-
getExternal
Gets the configuration that points to an already configured handler bean.- Specified by:
getExternal
in interfaceHandlerConfigurationProperties<AuditLogger>
- Returns:
- a configuration that points to an already configured handler bean, or null if it is not assigned
-
setExternal
Assigns the configuration that points to an already configured handler bean.- Specified by:
setExternal
in interfaceHandlerConfigurationProperties<AuditLogger>
- Parameters:
external
- configuration that points to an already configured handler bean
-
getHandlerConfiguration
@Nonnull public HandlerConfiguration<AuditLogger> getHandlerConfiguration() throws IllegalArgumentExceptionAn handler configuration properties class may have setters for several types of a particular types of a handler. For a specific engine configuration only one may be assigned. This method returns the configuration that was set.- Specified by:
getHandlerConfiguration
in interfaceHandlerConfigurationProperties<AuditLogger>
- Returns:
- the assigned configuration object
- Throws:
IllegalArgumentException
- if more than one configuration type is supplied, or no configuration exists
-
getHandlerConfiguration
Gets the handler configuration for the given name.- Specified by:
getHandlerConfiguration
in interfaceHandlerConfigurationProperties<AuditLogger>
- Parameters:
name
- the name of the configuration- Returns:
- the handler configuration or null
-
getFile
Configuration for file audit logging. -
setFile
Configuration for file audit logging. -
getLogSystem
Configuration for audit logging using an underlying log system. -
setLogSystem
Configuration for audit logging using an underlying log system. -
getCallback
Configuration for audit logging using callbacks to a listener. -
setCallback
Configuration for audit logging using callbacks to a listener. -
getActuator
Configuration for using Spring Boot's actuator for audit logging. -
setActuator
Configuration for using Spring Boot's actuator for audit logging.
-