Share via


JsonWebKey.ToRSA(Boolean) Method

Definition

Converts this JsonWebKey of type Rsa or RsaHsm to an RSA object.

public System.Security.Cryptography.RSA ToRSA (bool includePrivateParameters = false);
member this.ToRSA : bool -> System.Security.Cryptography.RSA
Public Function ToRSA (Optional includePrivateParameters As Boolean = false) As RSA

Parameters

includePrivateParameters
Boolean

Whether to include private parameters.

Returns

RSA

An RSA object.

Exceptions

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

Applies to