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

定義

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

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

パラメーター

algorithm
String

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

requiresPrivateKeyprivateKey
Boolean

アルゴリズムの作成に秘密キーが必要な場合は true、それ以外の場合は false

戻り値

AsymmetricAlgorithm

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

例外

requiresPrivateKeytrue ですが、秘密キーを使用できません。

適用対象