RsaSecurityKey.GetAsymmetricAlgorithm(String, Boolean) Méthode

Définition

Obtient l'algorithme de chiffrement asymétrique spécifié.

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

Paramètres

algorithm
String

Algorithme asymétrique à créer.

requiresPrivateKey
Boolean

true lorsqu'une clé privée est requise pour créer l'algorithme ; sinon, false.

Retours

Objet AsymmetricAlgorithm qui représente l'algorithme de chiffrement asymétrique spécifié.

Exceptions

requiresPrivateKey a la valeur true et aucune clé privée n’est disponible.

S’applique à