Class SecretBackendMetadataWrapper
java.lang.Object
org.springframework.cloud.vault.config.SecretBackendMetadataWrapper
- All Implemented Interfaces:
SecretBackendMetadata
Provides a convenient implementation of the
SecretBackendMetadata interface
that can be subclassed to override specific methods.
This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.
- Since:
- 1.1
- Author:
- Mark Paluch
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SecretBackendMetadataWrapper
Create a newSecretBackendMetadataWrappergivenSecretBackendMetadata.- Parameters:
delegate- must not be null.
-
-
Method Details
-
getName
Description copied from interface:SecretBackendMetadataReturn a readable name of this secret backend.- Specified by:
getNamein interfaceSecretBackendMetadata- Returns:
- the name of this secret backend.
-
getPath
Description copied from interface:SecretBackendMetadataReturn the path of this secret backend.- Specified by:
getPathin interfaceSecretBackendMetadata- Returns:
- the path 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:
-
getVariables
- Specified by:
getVariablesin interfaceSecretBackendMetadata- Returns:
- the URL template variables. URI variables should declare either
backendandkeyorpathproperties.
-