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
ConstructorDescriptionSecretManagerPropertySource
(String propertySourceName, SecretManagerTemplate secretManagerTemplate, GcpProjectIdProvider projectIdProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name) String[]
TheSecretManagerPropertySource
is not enumerable, so this always returns an empty array.Methods inherited from class org.springframework.core.env.EnumerablePropertySource
containsProperty
Methods 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:
getProperty
in classorg.springframework.core.env.PropertySource<SecretManagerTemplate>
-
getPropertyNames
TheSecretManagerPropertySource
is not enumerable, so this always returns an empty array.- Specified by:
getPropertyNames
in classorg.springframework.core.env.EnumerablePropertySource<SecretManagerTemplate>
- Returns:
- the empty array.
-