Language

RsaSecurityKey.GetAsymmetricAlgorithm(String, Boolean) メソッド

定義

指定した非対称暗号化アルゴリズムを取得します。

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

パラメーター

algorithm
String

作成する非対称アルゴリズム。

requiresPrivateKey
Boolean

true アルゴリズムを作成するために秘密キーが必要な場合。それ以外の場合は false。

返品

指定した非対称暗号化アルゴリズムを表す AsymmetricAlgorithm 。

例外

requiresPrivateKey が true され、秘密キーは使用できません。

適用対象