Exemplo n.º 1
0
 public Track2HsmClient(IAuthenticationFactory authFactory, IAzureContext context)
 {
     _credential = new Track2TokenCredential(new DataServiceCredential(authFactory, context, AzureEnvironment.ExtendedEndpoint.ManagedHsmServiceEndpointResourceId));
     _uriHelper  = new VaultUriHelper(context.Environment.GetEndpoint(AzureEnvironment.ExtendedEndpoint.ManagedHsmServiceEndpointSuffix));
 }
Exemplo n.º 2
0
 public Track2VaultClient(IAuthenticationFactory authFactory, IAzureContext context)
 {
     _credential     = new Track2TokenCredential(new DataServiceCredential(authFactory, context, AzureEnvironment.Endpoint.AzureKeyVaultServiceEndpointResourceId));
     _vaultUriHelper = new VaultUriHelper(context.Environment.GetEndpoint(AzureEnvironment.Endpoint.AzureKeyVaultDnsSuffix));
 }