你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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