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 지정된 비대칭 암호화 알고리즘을 나타내는 값입니다.

예외

requiresPrivateKeytrue 고 프라이빗 키를 사용할 수 없습니다.

적용 대상