Exemplo n.º 1
0
        public KeyClient(Uri vaultUri, TokenCredential credential, KeyClientOptions options)
        {
            _vaultUri = vaultUri ?? throw new ArgumentNullException(nameof(credential));
            options   = options ?? new KeyClientOptions();

            _pipeline = HttpPipelineBuilder.Build(options,
                                                  bufferResponse: true,
                                                  new BearerTokenAuthenticationPolicy(credential, "https://vault.azure.net//.default"));
        }
Exemplo n.º 2
0
        public KeyClient(Uri vaultUri, TokenCredential credential, KeyClientOptions options)
        {
            _vaultUri = vaultUri ?? throw new ArgumentNullException(nameof(credential));
            options   = options ?? new KeyClientOptions();

            _pipeline = HttpPipelineBuilder.Build(options,
                                                  options.RetryPolicy,
                                                  ClientRequestIdPolicy.Shared,
                                                  new BearerTokenAuthenticationPolicy(credential, "https://vault.azure.net//.default"),
                                                  options.LoggingPolicy,
                                                  BufferResponsePolicy.Shared);
        }