Condividi tramite


SecurityTokenParameters.MatchesKeyIdentifierClause Metodo

Definizione

Indica se un token corrisponde a una clausola dell'identificatore di chiave.

protected public:
 virtual bool MatchesKeyIdentifierClause(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause, System::ServiceModel::Security::Tokens::SecurityTokenReferenceStyle referenceStyle);
protected internal virtual bool MatchesKeyIdentifierClause (System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause, System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle referenceStyle);
abstract member MatchesKeyIdentifierClause : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> bool
override this.MatchesKeyIdentifierClause : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityKeyIdentifierClause * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> bool
Protected Friend Overridable Function MatchesKeyIdentifierClause (token As SecurityToken, keyIdentifierClause As SecurityKeyIdentifierClause, referenceStyle As SecurityTokenReferenceStyle) As Boolean

Parametri

token
SecurityToken

Token di sicurezza.

keyIdentifierClause
SecurityKeyIdentifierClause

La clausola dell'identificatore di chiave specificata.

referenceStyle
SecurityTokenReferenceStyle

Lo stile di riferimento del token di sicurezza.

Restituisce

Boolean

true se il token corrisponde a una clausola dell'identificatore di chiave. In caso contrario, false.

Eccezioni

token è null.

referenceStyle non è External o Internal.

Si applica a