Polish "Support overriding the default SanitizingFunction"

See gh-30006
This commit is contained in:
Andy Wilkinson
2022-03-03 12:32:45 +00:00
parent fb9112c891
commit ff7321cc5a
4 changed files with 45 additions and 13 deletions

View File

@@ -65,7 +65,8 @@ Alternatively, additional patterns can be configured using configprop:management
To take more control over the santization, define a `SanitizingFunction` bean.
The `SanitizableData` with which the function is called provides access to the key and value as well as the `PropertySource` from which they came.
This allows you to, for example, sanitize every value that comes from a particular property source.
Each `SanitizingFunction` is called before and in addition to the built-in key-based sanitization.
Each `SanitizingFunction` is called in order until a function changes the value of the santizable data.
If no function changes its value, the built-in key-based santization is performed.