示例#1
0
        public virtual async Task <Response <Key> > CreateEcKeyAsync(EcKeyCreateOptions ecKey, CancellationToken cancellationToken = default)
        {
            if (ecKey == default)
            {
                throw new ArgumentNullException(nameof(ecKey));
            }

            var parameters = new KeyRequestParameters(ecKey);

            return(await SendRequestAsync(HttpPipelineMethod.Put, parameters, () => new Key(ecKey.Name), cancellationToken, KeysPath, ecKey.Name, "create"));
        }
示例#2
0
        /// <summary>
        /// Creates and stores a new Elliptic Curve key in Key Vault.
        /// </summary>
        /// <remarks>
        /// If the named key already exists, Azure Key Vault creates a new
        /// version of the key. It requires the keys/create permission.
        /// </remarks>
        /// <param name="ecKey">The key options object containing information about the Elliptic Curve key being created.</param>
        /// <param name="cancellationToken">A <see cref="CancellationToken"/> controlling the request lifetime.</param>
        public virtual Response <Key> CreateEcKey(EcKeyCreateOptions ecKey, CancellationToken cancellationToken = default)
        {
            if (ecKey == default)
            {
                throw new ArgumentNullException(nameof(ecKey));
            }

            var parameters = new KeyRequestParameters(ecKey);

            return(SendRequest(RequestMethod.Post, parameters, () => new Key(ecKey.Name), cancellationToken, KeysPath, ecKey.Name, "/create"));
        }
示例#3
0
        public virtual async Task <Response <Key> > CreateEcKeyAsync(EcKeyCreateOptions ecKey, CancellationToken cancellationToken = default)
        {
            await Task.CompletedTask;

            throw new NotImplementedException();
        }
示例#4
0
 public virtual Response <Key> CreateEcKey(EcKeyCreateOptions ecKey, CancellationToken cancellationToken = default)
 {
     throw new NotImplementedException();
 }