Class 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
    Leverage EnvironmentPostProcessor to add Key Vault secrets as a property source.
    • Field Detail

    • Constructor Detail

      • KeyVaultEnvironmentPostProcessor

        public KeyVaultEnvironmentPostProcessor()
    • 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:
        postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor
        Parameters:
        environment - the environment.
        application - the application.
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • setOrder

        public void setOrder​(int order)
        Sets the order
        Parameters:
        order - the order