@ConfigurationProperties(name="endpoints.configprops", ignoreUnknownFields=false) public class ConfigurationPropertiesReportEndpoint extends AbstractEndpoint<Map<String,Object>> implements org.springframework.context.ApplicationContextAware
Endpoint
to expose application properties from ConfigurationProperties
annotated classes.
To protect sensitive information from being exposed, certain property values are masked
if their names end with a set of configurable values (default "password" and "secret").
Configure property names by using setKeysToSanitize(String[])
.
Constructor and Description |
---|
ConfigurationPropertiesReportEndpoint() |
Modifier and Type | Method and Description |
---|---|
String[] |
getKeysToSanitize() |
Map<String,Object> |
invoke()
Called to invoke the endpoint.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setKeysToSanitize(String... keysToSanitize) |
getId, isEnabled, isSensitive, setEnabled, setId, setSensitive
public ConfigurationPropertiesReportEndpoint()
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public String[] getKeysToSanitize()
public void setKeysToSanitize(String... keysToSanitize)
Copyright © 2014. All rights reserved.