Condividi tramite


JsonWebKey.ToECDsa(Boolean) Method

Definition

Converts this JsonWebKey of type Ec or EcHsm to an ECDsa object.

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

Parameters

includePrivateParameters
Boolean

Whether to include private parameters.

Returns

An ECDsa object.

Exceptions

This key is not of type Ec or EcHsm, or one or more key parameters are invalid.

Applies to