แก้ไข

แชร์ผ่าน


X509AsymmetricSecurityKey.IsSupportedAlgorithm(String) Method

Definition

Gets a value that indicates whether the specified algorithm is supported by this class.

public:
 override bool IsSupportedAlgorithm(System::String ^ algorithm);
public override bool IsSupportedAlgorithm (string algorithm);
override this.IsSupportedAlgorithm : string -> bool
Public Overrides Function IsSupportedAlgorithm (algorithm As String) As Boolean

Parameters

algorithm
String

The cryptographic algorithm.

Returns

true when the specified algorithm is XmlDsigDSAUrl, XmlEncRSA15Url, XmlEncRSAOAEPUrl, XmlDsigRSASHA1Url, or RsaSha256Signature and the public key is of the right type; otherwise, false.

Remarks

The IsSupportedAlgorithm method returns true when one of the following is true:

Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.

Applies to