Class ConjurConnectionManager

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

    public class ConjurConnectionManager
    extends Object
    implements org.springframework.context.EnvironmentAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor
    This is the connection creation singleton class with conjur vault by using the conjur java sdk.
    • Constructor Detail

      • ConjurConnectionManager

        public ConjurConnectionManager​(AccessTokenProvider accessTokenProvider)
        For Getting Connection with conjur vault using cyberark sdk
        Parameters:
        accessTokenProvider - the access token provider
    • Method Detail

      • postProcessBeanFactory

        public void postProcessBeanFactory​(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                                    throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
        Throws:
        org.springframework.beans.BeansException
      • setEnvironment

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

        public static String getAccount​(com.cyberark.conjur.sdk.endpoint.SecretsApi secretsApi)
        Get account string.
        Parameters:
        secretsApi - the secrets api
        Returns:
        the string