Class SecretManagerPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<SecretManagerTemplate>
com.google.cloud.spring.secretmanager.SecretManagerPropertySource
public class SecretManagerPropertySource
extends org.springframework.core.env.EnumerablePropertySource<SecretManagerTemplate>
A property source for Secret Manager which accesses the Secret Manager APIs when
getProperty(java.lang.String) is called.- Since:
- 1.2.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
org.springframework.core.env.PropertySource.StubPropertySource -
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source -
Constructor Summary
ConstructorsConstructorDescriptionSecretManagerPropertySource(String propertySourceName, SecretManagerTemplate secretManagerTemplate, GcpProjectIdProvider projectIdProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String name) String[]TheSecretManagerPropertySourceis not enumerable, so this always returns an empty array.Methods inherited from class org.springframework.core.env.EnumerablePropertySource
containsPropertyMethods inherited from class org.springframework.core.env.PropertySource
equals, getName, getSource, hashCode, named, toString
-
Constructor Details
-
SecretManagerPropertySource
public SecretManagerPropertySource(String propertySourceName, SecretManagerTemplate secretManagerTemplate, GcpProjectIdProvider projectIdProvider)
-
-
Method Details
-
getProperty
- Specified by:
getPropertyin classorg.springframework.core.env.PropertySource<SecretManagerTemplate>
-
getPropertyNames
TheSecretManagerPropertySourceis not enumerable, so this always returns an empty array.- Specified by:
getPropertyNamesin classorg.springframework.core.env.EnumerablePropertySource<SecretManagerTemplate>- Returns:
- the empty array.
-