Class CustomPropertySourceChain
- java.lang.Object
-
- org.springframework.core.env.PropertySource<T>
-
- org.springframework.core.env.EnumerablePropertySource<Object>
-
- com.cyberark.conjur.springboot.service.PropertyProcessorChain
-
- com.cyberark.conjur.springboot.service.CustomPropertySourceChain
-
public class CustomPropertySourceChain extends PropertyProcessorChain
This custom class resolves the secret value at application load time from the conjur vault.
-
-
Constructor Summary
Constructors Constructor Description CustomPropertySourceChain(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetProperty(String key)Method which resolves @value annotation queries and return result in the form of byte array.String[]getPropertyNames()voidsetNextChain(PropertyProcessorChain nextChain)voidsetSecretsApi(com.cyberark.conjur.sdk.endpoint.SecretsApi secretsApi)
-
-
-
Constructor Detail
-
CustomPropertySourceChain
public CustomPropertySourceChain(String name)
-
-
Method Detail
-
setNextChain
public void setNextChain(PropertyProcessorChain nextChain)
- Overrides:
setNextChainin classPropertyProcessorChain
-
setSecretsApi
public void setSecretsApi(com.cyberark.conjur.sdk.endpoint.SecretsApi secretsApi)
-
getPropertyNames
public String[] getPropertyNames()
- Specified by:
getPropertyNamesin classorg.springframework.core.env.EnumerablePropertySource<Object>
-
getProperty
public Object getProperty(String key)
Description copied from class:PropertyProcessorChainMethod which resolves @value annotation queries and return result in the form of byte array.- Overrides:
getPropertyin classPropertyProcessorChain
-
-