SecurityTokenResolver.CreateDefaultSecurityTokenResolver(ReadOnlyCollection<SecurityToken>, Boolean) Método
Definição
Cria um resolvedor de token de segurança padrão para os tokens de segurança especificados.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
Parâmetros
- tokens
- ReadOnlyCollection<SecurityToken>
Um ReadOnlyCollection<T> do tipo SecurityToken que contém o conjunto de tokens de segurança para o qual este resolvedor de tokens de segurança pode resolver identificadores de chave e cláusulas de identificadores de chave.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 para resolver as cláusulas de identificadores de chave de <SecurityTokenReference> que fazem referência a uma chave de segurança localizada em algum outro lugar da mensagem SOAP; caso contrário, false.true to resolve the <SecurityTokenReference> key identifier clauses that reference a security key that is located somewhere else in the SOAP message; otherwise, false.
Retornos
Um SecurityTokenResolver que resolve identificadores de chave e cláusulas que correspondem aos tokens de segurança especificados no parâmetro tokens.A SecurityTokenResolver that resolves key identifiers and clauses that match the security tokens specified in the tokens parameter.
Comentários
O resolvedor de token de segurança que é retornado desse método usa MatchesKeyIdentifierClause os ResolveKeyIdentifierClause métodos e nos tokens de segurança especificados para resolver os identificadores de chave e as cláusulas de identificador de chave.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.