SecurityTokenResolver.CreateDefaultSecurityTokenResolver Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a default security token resolver for the specified security tokens.
public:
static System::IdentityModel::Selectors::SecurityTokenResolver ^ CreateDefaultSecurityTokenResolver(System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Tokens::SecurityToken ^> ^ tokens, bool canMatchLocalId);
public static System.IdentityModel.Selectors.SecurityTokenResolver CreateDefaultSecurityTokenResolver (System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityToken> tokens, bool canMatchLocalId);
static member CreateDefaultSecurityTokenResolver : System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityToken> * bool -> System.IdentityModel.Selectors.SecurityTokenResolver
Public Shared Function CreateDefaultSecurityTokenResolver (tokens As ReadOnlyCollection(Of SecurityToken), canMatchLocalId As Boolean) As SecurityTokenResolver
Parameters
- tokens
- ReadOnlyCollection<SecurityToken>
A ReadOnlyCollection<T> of type SecurityToken that contains the set of security tokens for which this security token resolver can resolve key identifiers and key identifier clauses to.
- canMatchLocalId
- Boolean
true
to resolve the <SecurityTokenReference>
key identifier clauses that reference a security key that is located somewhere else in the SOAP message; otherwise, false
.
Returns
A SecurityTokenResolver that resolves key identifiers and clauses that match the security tokens specified in the tokens
parameter.
Remarks
The security token resolver that is returned from this method, uses the MatchesKeyIdentifierClause and ResolveKeyIdentifierClause methods on the specified security tokens to resolve key identifiers and key identifier clauses.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應