CryptographyClient.CreateRSA(CancellationToken) Method

Definition

Creates an RSA implementation backed by this CryptographyClient.

public virtual Azure.Security.KeyVault.Keys.Cryptography.RSAKeyVault CreateRSA (System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRSA : System.Threading.CancellationToken -> Azure.Security.KeyVault.Keys.Cryptography.RSAKeyVault
override this.CreateRSA : System.Threading.CancellationToken -> Azure.Security.KeyVault.Keys.Cryptography.RSAKeyVault
Public Overridable Function CreateRSA (Optional cancellationToken As CancellationToken = Nothing) As 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 synchronously.

Applies to