Class PropertyNameTransformer
java.lang.Object
org.springframework.cloud.vault.config.PropertyNameTransformer
- All Implemented Interfaces:
org.springframework.vault.core.util.PropertyTransformer
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.
- Author:
- Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyTransformation(String sourceKeyName, String targetKeyName) Adds a key name transformation by providing asourceKeyNameand atargetKeyName.transformProperties(Map<String, ? extends Object> input) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.vault.core.util.PropertyTransformer
andThen
-
Constructor Details
-
PropertyNameTransformer
public PropertyNameTransformer()Create a newPropertyNameTransformer.
-
-
Method Details
-
addKeyTransformation
-
transformProperties
-