Package com.azure.spring.keyvault
Class KeyVaultPropertySource
- java.lang.Object
-
- org.springframework.core.env.PropertySource<T>
-
- org.springframework.core.env.EnumerablePropertySource<KeyVaultOperation>
-
- com.azure.spring.keyvault.KeyVaultPropertySource
-
public class KeyVaultPropertySource extends org.springframework.core.env.EnumerablePropertySource<KeyVaultOperation>
A key vault implementation ofEnumerablePropertySourceto enumerate all property pairs in Key Vault.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultPropertySource(KeyVaultOperation operation)Creates a new instance ofKeyVaultPropertySource.KeyVaultPropertySource(String keyVaultName, KeyVaultOperation operation)Creates a new instance ofKeyVaultPropertySource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetProperty(String name)String[]getPropertyNames()
-
-
-
Constructor Detail
-
KeyVaultPropertySource
public KeyVaultPropertySource(String keyVaultName, KeyVaultOperation operation)
Creates a new instance ofKeyVaultPropertySource.- Parameters:
keyVaultName- the KeyVault nameoperation- the KeyVault operation
-
KeyVaultPropertySource
public KeyVaultPropertySource(KeyVaultOperation operation)
Creates a new instance ofKeyVaultPropertySource.- Parameters:
operation- the KeyVault operation
-
-
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>
-
-