@ConfigurationProperties(prefix="endpoints.env.mask")
public class PropertySourceMaskingEnvironmentEndpoint
extends org.springframework.boot.actuate.endpoint.EnvironmentEndpoint
setSourceNamePatterns(String...) method or by setting a
endpoints.env.mask.source-name-patterns property.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_MESSAGE |
| Constructor and Description |
|---|
PropertySourceMaskingEnvironmentEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage() |
java.lang.String[] |
getSourceNamePatterns() |
protected java.util.Map<java.lang.String,java.lang.Object> |
postProcessSourceProperties(java.lang.String sourceName,
java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
setMessage(java.lang.String message)
Set the message to include in the environment endpoint response for masked messages.
|
void |
setSourceNamePatterns(java.lang.String... sourceNamePatterns)
Set patterns to apply against property source names that should be masked.
|
getResolver, invoke, sanitize, setKeysToSanitizepublic static final java.lang.String DEFAULT_MESSAGE
public PropertySourceMaskingEnvironmentEndpoint()
public void setSourceNamePatterns(java.lang.String... sourceNamePatterns)
"configService:*" will mask all properties for any
Spring Cloud Config Service property source. Similarly, "*gi*ub*"
will mask all property sources that have "gi" and "ub" (including "github") in
their name.sourceNamePatterns - One or more property source name patterns.public java.lang.String[] getSourceNamePatterns()
public void setMessage(java.lang.String message)
message - The message to include in the environment endpoint response for masked messages.public java.lang.String getMessage()
protected java.util.Map<java.lang.String,java.lang.Object> postProcessSourceProperties(java.lang.String sourceName,
java.util.Map<java.lang.String,java.lang.Object> properties)
postProcessSourceProperties in class org.springframework.boot.actuate.endpoint.EnvironmentEndpoint