Edit

Share via


X509IssuerSerialKeyIdentifierClause.Matches Method

Definition

Returns a value that indicates whether the key identifier for this instance matches the specified object.

Overloads

Matches(SecurityKeyIdentifierClause)

Returns a value that indicates whether the key identifier for this instance matches the specified key identifier.

Matches(X509Certificate2)

Returns a value that indicates whether the key identifier for this instance matches the specified X.509 certificate.

Matches(String, String)

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified issuer name and issuer serial number.

Matches(SecurityKeyIdentifierClause)

Source:
X509IssuerSerialKeyIdentifierClause.cs
Source:
X509IssuerSerialKeyIdentifierClause.cs

Returns a value that indicates whether the key identifier for this instance matches the specified key identifier.

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

Parameters

keyIdentifierClause
SecurityKeyIdentifierClause

A SecurityKeyIdentifierClause to compare to this instance.

Returns

true if keyIdentifierClause is a X509IssuerSerialKeyIdentifierClause type and the key identifier clauses match; otherwise, false.

Remarks

For the X509IssuerSerialKeyIdentifierClause class, the values of the key identifier clauses that are compared to determine if there is a match are the values of the IssuerName and IssuerSerialNumber properties.

Applies to

Matches(X509Certificate2)

Source:
X509IssuerSerialKeyIdentifierClause.cs
Source:
X509IssuerSerialKeyIdentifierClause.cs

Returns a value that indicates whether the key identifier for this instance matches 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 issuer name and issuer serial number as the current instance; otherwise, false.

Remarks

The issuer name and issuer serial number are obtained from the certificate parameter, by getting the value of the IssuerName property and calling the GetSerialNumber method, respectively.

Applies to

Matches(String, String)

Source:
X509IssuerSerialKeyIdentifierClause.cs
Source:
X509IssuerSerialKeyIdentifierClause.cs

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified issuer name and issuer serial number.

public:
 bool Matches(System::String ^ issuerName, System::String ^ issuerSerialNumber);
public bool Matches (string issuerName, string issuerSerialNumber);
override this.Matches : string * string -> bool
Public Function Matches (issuerName As String, issuerSerialNumber As String) As Boolean

Parameters

issuerName
String

The distinguished name of the certificate authority that issued the X.509 certificate.

issuerSerialNumber
String

The serial number of the X.509 certificate.

Returns

true if the issuerName and issuerSerialNumber parameters match the IssuerName and IssuerSerialNumber properties; otherwise, false.

Applies to