SecurityTokenResolver.CreateDefaultSecurityTokenResolver Method (ReadOnlyCollection<SecurityToken>, Boolean)


Creates a default security token resolver for the specified security tokens.

Namespace:   System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public static SecurityTokenResolver CreateDefaultSecurityTokenResolver(
	ReadOnlyCollection<SecurityToken> tokens,
	bool canMatchLocalId


Type: System.Collections.ObjectModel.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.

Type: System.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.

Return Value

Type: System.IdentityModel.Selectors.SecurityTokenResolver

A SecurityTokenResolver that resolves key identifiers and clauses that match the security tokens specified in the tokens parameter.

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.

.NET Framework
Available since 3.0
Return to top