Class ConjurPropertySource
- java.lang.Object
-
- org.springframework.core.env.PropertySource<T>
-
- org.springframework.core.env.EnumerablePropertySource<Object>
-
- com.cyberark.conjur.springboot.core.env.ConjurPropertySource
-
public class ConjurPropertySource extends org.springframework.core.env.EnumerablePropertySource<Object>
This class resolves the secret value for give vault path at application load time from the conjur vault.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConjurPropertySource(String vaultPath)protectedConjurPropertySource(String vaultPath, String vaultInfo, org.springframework.core.type.AnnotationMetadata importingClassMetadata)
-
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()voidsetSecretsApi(com.cyberark.conjur.sdk.endpoint.SecretsApi secretsApi)To set the secert api value
-
-
-
Constructor Detail
-
ConjurPropertySource
protected ConjurPropertySource(String vaultPath)
-
ConjurPropertySource
protected ConjurPropertySource(String vaultPath, String vaultInfo, org.springframework.core.type.AnnotationMetadata importingClassMetadata) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
-
Method Detail
-
getPropertyNames
public String[] getPropertyNames()
- Specified by:
getPropertyNamesin classorg.springframework.core.env.EnumerablePropertySource<Object>
-
getProperty
public Object getProperty(String key)
Method which resolves @value annotation queries and return result in the form of byte array.- Specified by:
getPropertyin classorg.springframework.core.env.PropertySource<Object>
-
setSecretsApi
public void setSecretsApi(com.cyberark.conjur.sdk.endpoint.SecretsApi secretsApi)
To set the secert api value- Parameters:
secretsApi-
-
-