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")); }
/// <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")); }
public virtual async Task <Response <Key> > CreateEcKeyAsync(EcKeyCreateOptions ecKey, CancellationToken cancellationToken = default) { await Task.CompletedTask; throw new NotImplementedException(); }
public virtual Response <Key> CreateEcKey(EcKeyCreateOptions ecKey, CancellationToken cancellationToken = default) { throw new NotImplementedException(); }