SecurityTokenParameters.MatchesKeyIdentifierClause 方法

定义

指示令牌是否与密钥标识符子句匹配。

protected public:
 virtual bool MatchesKeyIdentifierClause(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause, System::ServiceModel::Security::Tokens::SecurityTokenReferenceStyle referenceStyle);
protected internal virtual bool MatchesKeyIdentifierClause (System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause, System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle referenceStyle);
abstract member MatchesKeyIdentifierClause : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> bool
override this.MatchesKeyIdentifierClause : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> bool
Protected Friend Overridable Function MatchesKeyIdentifierClause (token As SecurityToken, keyIdentifierClause As SecurityKeyIdentifierClause, referenceStyle As SecurityTokenReferenceStyle) As Boolean

参数

token
SecurityToken

安全令牌。

keyIdentifierClause
SecurityKeyIdentifierClause

指定的密钥标识符子句。

referenceStyle
SecurityTokenReferenceStyle

安全标记的引用类型。

返回

Boolean

如果令牌与密钥标识符子句匹配,则为 true;否则为 false

例外

tokennull

referenceStyle 不是 ExternalInternal

适用于