แก้ไข

แชร์ผ่าน


SecurityTokenResolver.CreateDefaultSecurityTokenResolver Method

Definition

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