X509SecurityToken::MatchesKeyIdentifierClause Method
Returns a value indicating whether the key identifier for this instance is equal to the specified key identifier.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
public: virtual bool MatchesKeyIdentifierClause( SecurityKeyIdentifierClause^ keyIdentifierClause ) override
Parameters
- keyIdentifierClause
- Type: System.IdentityModel.Tokens::SecurityKeyIdentifierClause
An SecurityKeyIdentifierClause to compare to this instance.
Return Value
Type: System::Booleantrue if keyIdentifierClause is one of the X509SubjectKeyIdentifierClause, X509ThumbprintKeyIdentifierClause, X509IssuerSerialKeyIdentifierClause, or X509RawDataKeyIdentifierClause types and the key identifier clauses match; otherwise, false.
The MatchesKeyIdentifierClause method matches criteria in the X.509 certificate in the Certificate property based on the type of the keyIdentifierClause parameter. The following table details what is matched.
Key identifier clause type | What is matched |
|---|---|
The value of the IssuerName property and the issuer serial number returned from the GetSerialNumber method. | |
The data returned from the GetRawCertData method. | |
The subject key identifier extension in the Extensions property is matched. | |
The thumbprint that is returned by the GetCertHash method. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.