Compartilhar via


CryptographyClient.CreateRSAAsync(CancellationToken) Method

Definition

Creates an RSA implementation backed by this CryptographyClient.

public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Keys.Cryptography.RSAKeyVault> CreateRSAAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRSAAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Keys.Cryptography.RSAKeyVault>
override this.CreateRSAAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Keys.Cryptography.RSAKeyVault>
Public Overridable Function CreateRSAAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of RSAKeyVault)

Parameters

cancellationToken
CancellationToken

A CancellationToken to cancel this operation.

Returns

An RSAKeyVault implementation backed by this CryptographyClient.

Exceptions

This key is not of type Rsa or RsaHsm, or one or more key parameters are invalid.

The server returned an error. See Message for details returned from the server.

Remarks

The CryptographyClient will attempt to download the public key asynchronously.

Applies to