Class KeyVaultOperation
java.lang.Object
com.azure.spring.cloud.autoconfigure.keyvault.environment.KeyVaultOperation
KeyVaultOperation wraps the operations to access Key Vault.
- Since:
- 4.0.0
-
Constructor Summary
ConstructorDescriptionKeyVaultOperation
(com.azure.security.keyvault.secrets.SecretClient secretClient, Duration refreshDuration, List<String> secretKeys, boolean caseSensitive) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String property) Get the property.String[]
Get the property names.
-
Constructor Details
-
KeyVaultOperation
public KeyVaultOperation(com.azure.security.keyvault.secrets.SecretClient secretClient, Duration refreshDuration, List<String> secretKeys, boolean caseSensitive) Constructor.- Parameters:
secretClient
- the Key Vault secret client.refreshDuration
- the refresh in milliseconds (0 or less disables refresh).secretKeys
- the secret keys to look for.caseSensitive
- the case-sensitive flag.
-
-
Method Details
-
getProperty
Get the property.- Parameters:
property
- the property to get.- Returns:
- the property value.
-
getPropertyNames
Get the property names.- Returns:
- the property names.
-