Class KeyVaultPropertySource
- java.lang.Object
-
- org.springframework.core.env.PropertySource<T>
-
- org.springframework.core.env.EnumerablePropertySource<KeyVaultOperation>
-
- com.azure.spring.cloud.autoconfigure.keyvault.environment.KeyVaultPropertySource
-
public class KeyVaultPropertySource extends org.springframework.core.env.EnumerablePropertySource<KeyVaultOperation>
A key vault implementation ofEnumerablePropertySourceto enumerate all property pairs in Key Vault.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description KeyVaultPropertySource(String name, KeyVaultOperation operation)Create a newKeyVaultPropertySourcewith the given name andKeyVaultOperation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsProperty(String name)ObjectgetProperty(String name)String[]getPropertyNames()
-
-
-
Constructor Detail
-
KeyVaultPropertySource
public KeyVaultPropertySource(String name, KeyVaultOperation operation)
Create a newKeyVaultPropertySourcewith the given name andKeyVaultOperation.- Parameters:
name- the associated nameoperation- theKeyVaultOperation
-
-
Method Detail
-
getPropertyNames
public String[] getPropertyNames()
- Specified by:
getPropertyNamesin classorg.springframework.core.env.EnumerablePropertySource<KeyVaultOperation>
-
getProperty
public Object getProperty(String name)
- Specified by:
getPropertyin classorg.springframework.core.env.PropertySource<KeyVaultOperation>
-
containsProperty
public boolean containsProperty(String name)
- Overrides:
containsPropertyin classorg.springframework.core.env.EnumerablePropertySource<KeyVaultOperation>
-
-