public class PropertyNameTransformer extends Object implements org.springframework.vault.core.util.PropertyTransformer
PropertyTransformer to transform a Map of properties by applying key
name translation.
Existing keys will be transformed to a target key name while retaining the original value. Key name translation will leave other, not specified key names untouched.
| Constructor and Description |
|---|
PropertyNameTransformer()
Create a new
PropertyNameTransformer. |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyTransformation(String sourceKeyName,
String targetKeyName)
Adds a key name transformation by providing a
sourceKeyName and a
targetKeyName. |
Map<String,Object> |
transformProperties(Map<String,? extends Object> input) |
public PropertyNameTransformer()
PropertyNameTransformer.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.