Redigera

Dela via


X509SecurityToken.MatchesKeyIdentifierClause Method

Definition

Returns a value indicating whether the key identifier for this instance is equal to the specified key identifier.

public:
 override bool MatchesKeyIdentifierClause(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause);
public override bool MatchesKeyIdentifierClause (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause);
override this.MatchesKeyIdentifierClause : System.IdentityModel.Tokens.SecurityKeyIdentifierClause -> bool
Public Overrides Function MatchesKeyIdentifierClause (keyIdentifierClause As SecurityKeyIdentifierClause) As Boolean

Parameters

keyIdentifierClause
SecurityKeyIdentifierClause

An SecurityKeyIdentifierClause to compare to this instance.

Returns

true if keyIdentifierClause is one of the X509SubjectKeyIdentifierClause, X509ThumbprintKeyIdentifierClause, X509IssuerSerialKeyIdentifierClause, or X509RawDataKeyIdentifierClause types and the key identifier clauses match; otherwise, false.

Remarks

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
X509IssuerSerialKeyIdentifierClause The value of the IssuerName property and the issuer serial number returned from the GetSerialNumber method.
X509RawDataKeyIdentifierClause The data returned from the GetRawCertData method.
X509SubjectKeyIdentifierClause The subject key identifier extension in the Extensions property is matched.
X509ThumbprintKeyIdentifierClause The thumbprint that is returned by the GetCertHash method.

Applies to