类 SanitizableData
java.lang.Object
org.springframework.boot.actuate.endpoint.SanitizableData
Value object that represents the data that can be used by a
SanitizingFunction
.- 从以下版本开始:
- 2.6.0
- 作者:
- Madhura Bhave, Rohan Goyal
-
字段概要
字段 -
构造器概要
构造器构造器说明SanitizableData
(PropertySource<?> propertySource, String key, Object value) Create a newSanitizableData
instance. -
方法概要
修饰符和类型方法说明getKey()
Return the key of the data.Return the property source that provided the data ornull
If the data was not from aPropertySource
.getValue()
Return the value of the data.Return a newSanitizableData
instance with sanitized value.Return a newSanitizableData
instance with a different value.
-
字段详细资料
-
SANITIZED_VALUE
Represents a sanitized value.- 另请参阅:
-
-
构造器详细资料
-
SanitizableData
Create a newSanitizableData
instance.- 参数:
propertySource
- the property source that provided the data ornull
.key
- the data keyvalue
- the data value
-
-
方法详细资料
-
getPropertySource
Return the property source that provided the data ornull
If the data was not from aPropertySource
.- 返回:
- the property source that provided the data
-
getKey
Return the key of the data.- 返回:
- the data key
-
getValue
Return the value of the data.- 返回:
- the data value
-
withSanitizedValue
Return a newSanitizableData
instance with sanitized value.- 返回:
- a new sanitizable data instance.
- 从以下版本开始:
- 3.1.0
-
withValue
Return a newSanitizableData
instance with a different value.- 参数:
value
- the new value (oftenSANITIZED_VALUE
- 返回:
- a new sanitizable data instance
-