Edit

Share via


RsaKeyIdentifierClause.Matches Method

Definition

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified object.

Overloads

Matches(SecurityKeyIdentifierClause)

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified key identifier clause.

Matches(RSA)

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

Matches(SecurityKeyIdentifierClause)

Returns a value that indicates whether the key identifier for this instance is equivalent to the specified key identifier clause.

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.

Returns

true if keyIdentifierClause is of type RsaKeyIdentifierClause and the arrays returned by the GetModulus() and GetExponent() methods for the keyIdentifierClause parameter are identical to the current instance; otherwise, false.

Applies to

Matches(RSA)

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

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

Parameters

rsa
RSA

An RSA that represents an RSA algorithm.

Returns

true if the Exponent and Modulus fields of the rsa parameter match the values returned by the GetModulus() and GetExponent() methods for the current instance; otherwise, false.

Applies to