Ejemplo n.º 1
0
 public VaultSvcAccessor(string pBaseUrl, string pSvcUserName, string pSvcPassword)
 {
     _client = new VaultSvcClient.VaultSvcClient(VAULT_SVC_ENDPOINT, pBaseUrl + @"/" + VAULT_SVC_URL_EXT);
     //why user id pwd...
     _client.ClientCredentials.UserName.UserName = pSvcUserName;
     _client.ClientCredentials.UserName.Password = pSvcPassword;
 }
Ejemplo n.º 2
0
        public VaultSvcAccessor()
        {
            string pBaseUrl = String.Empty;//TODO :get this from config local

            _client = new VaultSvcClient.VaultSvcClient(VAULT_SVC_ENDPOINT, pBaseUrl + @"/" + VAULT_SVC_URL_EXT);
        }
Ejemplo n.º 3
0
 public VaultSvcAccessor(string pBaseUrl)
 {
     _client = new VaultSvcClient.VaultSvcClient(VAULT_SVC_ENDPOINT, pBaseUrl + @"/" + VAULT_SVC_URL_EXT);
 }