Class ConjurCloudProcessor
- java.lang.Object
-
- com.cyberark.conjur.springboot.processor.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 Summary
Constructors Constructor Description ConjurCloudProcessor(com.cyberark.conjur.sdk.endpoint.SecretsApi secretsApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()ObjectpostProcessBeforeInitialization(Object bean, String beanName)voidsetEnvironment(org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
-