예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyVaultAccessClient"/> class.
 /// Invokes internal Facotory Methods.
 /// </summary>
 /// <param name="keyVaultTokenCredentialFactory"> TokenCredential </param>
 /// <param name="keyClientFactory"> KeyClient Factory </param>
 /// <param name="cryptographyClientFactory"> CryptoClient Factory </param>
 internal KeyVaultAccessClient(KeyVaultTokenCredentialFactory keyVaultTokenCredentialFactory, KeyClientFactory keyClientFactory, CryptographyClientFactory cryptographyClientFactory)
 {
     this.keyVaultTokenCredentialFactory = keyVaultTokenCredentialFactory;
     this.akvClientCache            = new AsyncCache <Uri, KeyClient>();
     this.akvCryptoClientCache      = new AsyncCache <Uri, CryptographyClient>();
     this.keyClientFactory          = keyClientFactory;
     this.cryptographyClientFactory = cryptographyClientFactory;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyVaultAccessClient"/> class.
 /// </summary>
 /// <param name="keyVaultTokenCredentialFactory"> TokenCredentials </param>
 public KeyVaultAccessClient(KeyVaultTokenCredentialFactory keyVaultTokenCredentialFactory)
 {
     this.keyVaultTokenCredentialFactory = keyVaultTokenCredentialFactory;
     this.akvClientCache            = new AsyncCache <Uri, KeyClient>();
     this.akvCryptoClientCache      = new AsyncCache <Uri, CryptographyClient>();
     this.keyClientFactory          = new KeyClientFactory();
     this.cryptographyClientFactory = new CryptographyClientFactory();
 }