Interface SecretBackendMetadataFactory<T extends VaultSecretBackendDescriptor>
-
- Type Parameters:
T- descriptor type.
public interface SecretBackendMetadataFactory<T extends VaultSecretBackendDescriptor>Strategy interface to createSecretBackendMetadatafromVaultSecretBackendDescriptorproperties. Mainly for internal use within the framework.Classes implementing this interface must implement
supports(VaultSecretBackendDescriptor)to determine whether a particularVaultSecretBackendDescriptoris supported by this implementation. If aVaultSecretBackendDescriptorinstance is supported by the implementation, it must be able to createSecretBackendMetadata, seecreateMetadata(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
ApplicationContextwhen usingBootstrapConfiguration(deprecated since 3.0) orspring.factorieswhen usingConfigDataLocationResolver.- Author:
- Mark Paluch
- See Also:
SecretBackendMetadata,LeasingSecretBackendMetadata,VaultSecretBackendDescriptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecretBackendMetadatacreateMetadata(T backendDescriptor)Converts aVaultSecretBackendDescriptorinto aSecretBackendMetadata.booleansupports(VaultSecretBackendDescriptor backendDescriptor)Checks whether theVaultSecretBackendDescriptoris supported by thisSecretBackendMetadataFactory.
-
-
-
Method Detail
-
createMetadata
SecretBackendMetadata createMetadata(T backendDescriptor)
Converts aVaultSecretBackendDescriptorinto aSecretBackendMetadata.- Parameters:
backendDescriptor- must not be null.- Returns:
- the
SecretBackendMetadata. - See Also:
LeasingSecretBackendMetadata
-
supports
boolean supports(VaultSecretBackendDescriptor backendDescriptor)
Checks whether theVaultSecretBackendDescriptoris supported by thisSecretBackendMetadataFactory.- Parameters:
backendDescriptor- must not be null.- Returns:
- true if the given
VaultSecretBackendDescriptoris supported.
-
-