Class SecretBackendMetadataSupport
- java.lang.Object
-
- org.springframework.cloud.vault.config.SecretBackendMetadataSupport
-
- All Implemented Interfaces:
SecretBackendMetadata
- Direct Known Subclasses:
KeyValueSecretBackendMetadata
public abstract class SecretBackendMetadataSupport extends Object implements SecretBackendMetadata
Support class forSecretBackendMetadataimplementations. Implementing classes are required to implementSecretBackendMetadata.getPath()to derive name and variables from the path.- Since:
- 1.1
- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description SecretBackendMetadataSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Return a readable name of this secret backend.org.springframework.vault.core.util.PropertyTransformergetPropertyTransformer()Return aPropertyTransformerto post-process properties retrieved from Vault.Map<String,String>getVariables()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.cloud.vault.config.SecretBackendMetadata
getPath
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SecretBackendMetadataReturn a readable name of this secret backend.- Specified by:
getNamein interfaceSecretBackendMetadata- Returns:
- the name of this secret backend.
-
getPropertyTransformer
public org.springframework.vault.core.util.PropertyTransformer getPropertyTransformer()
Description copied from interface:SecretBackendMetadataReturn aPropertyTransformerto post-process properties retrieved from Vault.- Specified by:
getPropertyTransformerin interfaceSecretBackendMetadata- Returns:
- the property transformer.
- See Also:
PropertyTransformers
-
getVariables
public Map<String,String> getVariables()
- Specified by:
getVariablesin interfaceSecretBackendMetadata- Returns:
- the URL template variables. URI variables should declare either
backendandkeyorpathproperties.
-
-