Interface SecretBackendMetadataFactory<T extends VaultSecretBackendDescriptor>
- Type Parameters:
T- descriptor type.
public interface SecretBackendMetadataFactory<T extends VaultSecretBackendDescriptor>
Strategy interface to create
SecretBackendMetadata from
VaultSecretBackendDescriptor properties. Mainly for internal use within the
framework.
Classes implementing this interface must implement
supports(VaultSecretBackendDescriptor) to determine whether a particular
VaultSecretBackendDescriptor is supported by this implementation. If a
VaultSecretBackendDescriptor instance is supported by the implementation, it
must be able to create SecretBackendMetadata, see
createMetadata(VaultSecretBackendDescriptor).
Typically implemented by secret backend providers that implement access to a particular
backend using read operations. Objects implementing this interface can be discovered
either from the ApplicationContext when using BootstrapConfiguration
(deprecated since 3.0) or spring.factories when using
ConfigDataLocationResolver.
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateMetadata(T backendDescriptor) Converts aVaultSecretBackendDescriptorinto aSecretBackendMetadata.booleansupports(VaultSecretBackendDescriptor backendDescriptor) Checks whether theVaultSecretBackendDescriptoris supported by thisSecretBackendMetadataFactory.
-
Method Details
-
createMetadata
Converts aVaultSecretBackendDescriptorinto aSecretBackendMetadata.- Parameters:
backendDescriptor- must not be null.- Returns:
- the
SecretBackendMetadata. - See Also:
-
supports
Checks whether theVaultSecretBackendDescriptoris supported by thisSecretBackendMetadataFactory.- Parameters:
backendDescriptor- must not be null.- Returns:
- true if the given
VaultSecretBackendDescriptoris supported.
-