public final class SanitizableData
extends java.lang.Object
SanitizingFunction.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SANITIZED_VALUE
Represents a sanitized value.
|
| Constructor and Description |
|---|
SanitizableData(org.springframework.core.env.PropertySource<?> propertySource,
java.lang.String key,
java.lang.Object value)
Create a new
SanitizableData instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey()
Return the key of the data.
|
org.springframework.core.env.PropertySource<?> |
getPropertySource()
Return the property source that provided the data or
null If the data was
not from a PropertySource. |
java.lang.Object |
getValue()
Return the value of the data.
|
SanitizableData |
withValue(java.lang.Object value)
Return a new
SanitizableData instance with a different value. |
public static final java.lang.String SANITIZED_VALUE
public SanitizableData(org.springframework.core.env.PropertySource<?> propertySource,
java.lang.String key,
java.lang.Object value)
SanitizableData instance.propertySource - the property source that provided the data or null.key - the data keyvalue - the data valuepublic org.springframework.core.env.PropertySource<?> getPropertySource()
null If the data was
not from a PropertySource.public java.lang.String getKey()
public java.lang.Object getValue()
public SanitizableData withValue(java.lang.Object value)
SanitizableData instance with a different value.value - the new value (often SANITIZED_VALUE