Class Sanitizer
java.lang.Object
org.springframework.boot.actuate.endpoint.Sanitizer
Strategy that should be used by endpoint implementations to sanitize potentially
sensitive keys.
- Since:
- 2.0.0
- Author:
- Christian Dupuis, Toshiaki Maki, Phillip Webb, Nicolas Lejeune, Stephane Nicoll, HaiTao Zhang, Chris Bono, David Good, Madhura Bhave
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsanitize
(SanitizableData data, boolean showUnsanitized) Sanitize the value from the givenSanitizableData
using the availableSanitizingFunction
s.
-
Constructor Details
-
Method Details
-
sanitize
Sanitize the value from the givenSanitizableData
using the availableSanitizingFunction
s.- Parameters:
data
- the sanitizable datashowUnsanitized
- whether to show the unsanitized values or not- Returns:
- the potentially updated data
- Since:
- 3.0.0
-