Class OpsAuditConfig

java.lang.Object
swiss.trustbroker.config.dto.OpsAuditConfig

public class OpsAuditConfig extends Object
CID (client identifying data) auditing configuration.
Since:
1.8.0
  • Constructor Details

    • OpsAuditConfig

      public OpsAuditConfig()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Enable CID free logging on the log group swiss.trustbroker.audit.service.OpsAuditLogger.
      You need to enable the log group as well This is not controlled by the log level of the log group alone as commonly INFO is enabled for the whole of swiss.trustbroker.
      Default: false
    • getCidFields

      public Map<String,Boolean> getCidFields()
      Fields to be considered CID by property names of swiss.trustbroker.audit.dto.AuditDto.
      Note: This map might potentially be used to define defaults for Definitions, hence the boolean value. Currently, setting a field to false is equivalent to not configuring it, you might still use that to document that you considered the field not CID.
    • setEnabled

      public void setEnabled(boolean enabled)
      Enable CID free logging on the log group swiss.trustbroker.audit.service.OpsAuditLogger.
      You need to enable the log group as well This is not controlled by the log level of the log group alone as commonly INFO is enabled for the whole of swiss.trustbroker.
      Default: false
    • setCidFields

      public void setCidFields(Map<String,Boolean> cidFields)
      Fields to be considered CID by property names of swiss.trustbroker.audit.dto.AuditDto.
      Note: This map might potentially be used to define defaults for Definitions, hence the boolean value. Currently, setting a field to false is equivalent to not configuring it, you might still use that to document that you considered the field not CID.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object