AggregateTokenResolver.TryResolveTokenCore 方法
定义
重载
| TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken) |
尝试检索这个安全令牌,即与指定的密钥标识符中包含的至少一个密钥标识符相匹配的安全令牌。Attempts to retrieve the security token that matches at least one of the key identifier clauses contained within the specified key identifier. |
| TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken) |
尝试解析与指定的密钥标识符子句相匹配的安全令牌。Attempts to resolve the security token that matches the specified key identifier clause. |
TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)
尝试检索这个安全令牌,即与指定的密钥标识符中包含的至少一个密钥标识符相匹配的安全令牌。Attempts to retrieve the security token that matches at least one of the key identifier clauses contained within the specified key identifier.
protected:
override bool TryResolveTokenCore(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ keyIdentifier, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityToken ^ % token);
protected override bool TryResolveTokenCore (System.IdentityModel.Tokens.SecurityKeyIdentifier keyIdentifier, out System.IdentityModel.Tokens.SecurityToken token);
override this.TryResolveTokenCore : System.IdentityModel.Tokens.SecurityKeyIdentifier * SecurityToken -> bool
Protected Overrides Function TryResolveTokenCore (keyIdentifier As SecurityKeyIdentifier, ByRef token As SecurityToken) As Boolean
参数
- keyIdentifier
- SecurityKeyIdentifier
为安全密钥标识符检索令牌。The security key identifier to retrieve the token for.
- token
- SecurityToken
当此方法返回时,包含一个标记,它表示指定的密钥标识符子句。When this method returns, contains a token that represents the specified key identifier. 此参数未经初始化即被传递。This parameter is passed uninitialized.
返回
如果可以为指定的密钥标识符检索令牌,则为 true;否则为 false。true when a token can be retrieved for the specified key identifier; otherwise, false.
例外
keyIdentifier 为 null。keyIdentifier is null.
注解
TryResolveTokenCore 方法由 TryResolveToken 和 ResolveToken 方法调用。The TryResolveTokenCore method is called by the TryResolveToken and ResolveToken methods.
适用于
TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)
尝试解析与指定的密钥标识符子句相匹配的安全令牌。Attempts to resolve the security token that matches the specified key identifier clause.
protected:
override bool TryResolveTokenCore(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityToken ^ % token);
protected override bool TryResolveTokenCore (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause, out System.IdentityModel.Tokens.SecurityToken token);
override this.TryResolveTokenCore : System.IdentityModel.Tokens.SecurityKeyIdentifierClause * SecurityToken -> bool
Protected Overrides Function TryResolveTokenCore (keyIdentifierClause As SecurityKeyIdentifierClause, ByRef token As SecurityToken) As Boolean
参数
- keyIdentifierClause
- SecurityKeyIdentifierClause
为其创建安全标记的密钥标识符子句。The key identifier clause to create a security token for.
- token
- SecurityToken
当此方法返回时,包含一个安全令牌,它表示指定的密钥标识符子句。When this method returns, contains a security token that represents the specified key identifier clause. 此参数未经初始化即被传递。This parameter is passed uninitialized.
返回
如果可以为指定的密钥标识符子句检索安全令牌,则为 true;否则为 false。true when a security token can be retrieved for the specified key identifier clause; otherwise, false.
例外
keyIdentifierClause 为 null。keyIdentifierClause is null.
注解
TryResolveTokenCore 方法由 TryResolveToken 和 ResolveToken 方法调用。The TryResolveTokenCore method is called by the TryResolveToken and ResolveToken methods.