Редактиране

Споделяне чрез


X509SubjectKeyIdentifierClause.Matches(X509Certificate2) Method

Definition

Returns a value that indicates whether the key identifier for this instance is equivalent to the key identifier of the specified X.509 certificate.

public:
 bool Matches(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public bool Matches (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
override this.Matches : System.Security.Cryptography.X509Certificates.X509Certificate2 -> bool
Public Function Matches (certificate As X509Certificate2) As Boolean

Parameters

certificate
X509Certificate2

An X509Certificate2 that contains the X.509 certificate to compare.

Returns

true if certificate has the same subject key identifier as the current instance; otherwise, false.

Exceptions

certificate is null.

Remarks

The Matches method compares the X509SubjectKeyIdentifierExtension extension for the two X.509 certificates.

Applies to