AggregateTokenResolver.TryResolveSecurityKeyCore(SecurityKeyIdentifierClause, SecurityKey) 方法

定义

尝试检索在指定的密钥标识符子句中引用的密钥。Attempts to retrieve the key that is referenced in the specified key identifier clause.

protected:
 override bool TryResolveSecurityKeyCore(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityKey ^ % key);
protected override bool TryResolveSecurityKeyCore (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause, out System.IdentityModel.Tokens.SecurityKey key);
override this.TryResolveSecurityKeyCore : System.IdentityModel.Tokens.SecurityKeyIdentifierClause * SecurityKey -> bool
Protected Overrides Function TryResolveSecurityKeyCore (keyIdentifierClause As SecurityKeyIdentifierClause, ByRef key As SecurityKey) As Boolean

参数

keyIdentifierClause
SecurityKeyIdentifierClause

检索其键的密钥标识符子句。The key identifier clause to retrieve the key for.

key
SecurityKey

当此方法返回时,包含在指定的密钥标识符子句中引用的密钥。When this method returns, contains the key that is referenced in the specified key identifier clause. 此参数未经初始化即被传递。This parameter is passed uninitialized.

返回

Boolean

如果可以为指定的密钥标识符子句检索密钥,则为 true;否则为 falsetrue when a key can be retrieved for the specified key identifier clause; otherwise, false.

例外

keyIdentifierClausenullkeyIdentifierClause is null.

注解

TryResolveSecurityKeyCore 方法由 TryResolveSecurityKeyResolveSecurityKey 方法调用。The TryResolveSecurityKeyCore method is called by the TryResolveSecurityKey and ResolveSecurityKey methods.

适用于