Share via


RsaKeyIdentifierClause.Matches 方法

定义

返回一个值,该值指示此实例的密钥标识符是否等效于指定的对象。

重载

Matches(SecurityKeyIdentifierClause)

返回一个值,该值指示此实例的密钥标识符是否等效于指定的密钥标识符子句。

Matches(RSA)

返回一个值,该值指示此实例的密钥标识符是否与指定的 RSA 算法相匹配。

Matches(SecurityKeyIdentifierClause)

返回一个值,该值指示此实例的密钥标识符是否等效于指定的密钥标识符子句。

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

参数

keyIdentifierClause
SecurityKeyIdentifierClause

要进行比较的 SecurityKeyIdentifierClause

返回

如果 keyIdentifierClauseRsaKeyIdentifierClause 类型并且 GetModulus()GetExponent() 方法对于 keyIdentifierClause 参数返回的数组与当前实例相同,则为 true;否则为 false

适用于

Matches(RSA)

返回一个值,该值指示此实例的密钥标识符是否与指定的 RSA 算法相匹配。

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

参数

rsa
RSA

一个表示 RSA 算法的 RSA

返回

如果 rsa 参数的 ExponentModulus 字段与当前实例的 GetModulus()GetExponent() 方法所返回的值相匹配,则为 true;否则为 false

适用于