Class ConjurCloudProcessor

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware

    public class ConjurCloudProcessor
    extends Object
    implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware
    The ValueProcess class will be invoked on boot strap of the applicaiton and will invoke the process chain based on the properties. It call the default property chain if value is found or will call the Custome propertysource to retrieve the value from the Conjur vault . This class in turn will invoke the ConjurPropertySource to autowire the value for @Value annotation
    • Constructor Detail

      • ConjurCloudProcessor

        public ConjurCloudProcessor​(com.cyberark.conjur.sdk.endpoint.SecretsApi secretsApi)
    • Method Detail

      • postProcessBeforeInitialization

        public Object postProcessBeforeInitialization​(Object bean,
                                                      String beanName)
                                               throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware