About

In the Partner Portal, Keyvault is used to store the credentials used for communicating with the SonWin Client. 

Most of the data related to communication can be maintained in the egadmin page of the application. 

This page descripes how to use the client in the code.

KeyVaultClient

About KeyVaultClient

When one is in need of interacting with teh KeyVault in Partner Portal, this should ALWAYS be done by invoking the KeyVaultClient, either directly or indirectly. 

NEVER make code that does not go through this entity. 

There are two main reasons for using the KeyVaultClient: 

How to use the KeyVaultClient

Initialization

The first thing one must do before using the KeyVaultClient is to initialize it. 

From the above, we see that the client needs the following two pieces of information in order to work: 

The info is usually taken from teh environment variables

Initializing the client could look like this (Look in the :

Using the client

When using the client, one have the following options: