Package com.azure.spring.keyvault
Class KeyVaultEnvironmentPostProcessor
- java.lang.Object
-
- com.azure.spring.keyvault.KeyVaultEnvironmentPostProcessor
-
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor,org.springframework.core.Ordered
public class KeyVaultEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
LeverageEnvironmentPostProcessorto add Key Vault secrets as a property source.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_ORDERThe default order
-
Constructor Summary
Constructors Constructor Description KeyVaultEnvironmentPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)Post process the environment.voidsetOrder(int order)Sets the order
-
-
-
Field Detail
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER
The default order- See Also:
- Constant Field Values
-
-
Method Detail
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)Post process the environment.Here we are going to process any key vault(s) and make them as available PropertySource(s). Note this supports both the singular key vault setup, as well as the multiple key vault setup.
- Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor- Parameters:
environment- the environment.application- the application.
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
Sets the order- Parameters:
order- the order
-
-