RsaSecurityKey.GetAsymmetricAlgorithm(String, Boolean) Metod

Definition

Hämtar den angivna asymmetriska kryptografiska algoritmen.

public:
 override System::Security::Cryptography::AsymmetricAlgorithm ^ GetAsymmetricAlgorithm(System::String ^ algorithm, bool requiresPrivateKey);
public override System.Security.Cryptography.AsymmetricAlgorithm GetAsymmetricAlgorithm(string algorithm, bool requiresPrivateKey);
override this.GetAsymmetricAlgorithm : string * bool -> System.Security.Cryptography.AsymmetricAlgorithm
Public Overrides Function GetAsymmetricAlgorithm (algorithm As String, requiresPrivateKey As Boolean) As AsymmetricAlgorithm

Parametrar

algorithm
String

Den asymmetriska algoritm som ska skapas.

requiresPrivateKey
Boolean

truenär en privat nyckel krävs för att skapa algoritmen; annars . false

Returer

En AsymmetricAlgorithm som representerar den angivna asymmetriska kryptografiska algoritmen.

Undantag

requiresPrivateKey är true och en privat nyckel är inte tillgänglig.

Gäller för