SamlSecurityTokenHandler.AddDelegateToAttributes Metod

Definition

Lägger till alla ombud som är associerade med ActAs-ämnet i attributsamlingen.

protected:
 virtual void AddDelegateToAttributes(System::Security::Claims::ClaimsIdentity ^ subject, System::Collections::Generic::ICollection<System::IdentityModel::Tokens::SamlAttribute ^> ^ attributes, System::IdentityModel::Tokens::SecurityTokenDescriptor ^ tokenDescriptor);
protected virtual void AddDelegateToAttributes(System.Security.Claims.ClaimsIdentity subject, System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> attributes, System.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member AddDelegateToAttributes : System.Security.Claims.ClaimsIdentity * System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> * System.IdentityModel.Tokens.SecurityTokenDescriptor -> unit
override this.AddDelegateToAttributes : System.Security.Claims.ClaimsIdentity * System.Collections.Generic.ICollection<System.IdentityModel.Tokens.SamlAttribute> * System.IdentityModel.Tokens.SecurityTokenDescriptor -> unit
Protected Overridable Sub AddDelegateToAttributes (subject As ClaimsIdentity, attributes As ICollection(Of SamlAttribute), tokenDescriptor As SecurityTokenDescriptor)

Parametrar

subject
ClaimsIdentity

Ombudet för det här ClaimsIdentity objektet serialiseras till en SamlAttribute. Ombudet anges av egenskapen Actor .

attributes
ICollection<SamlAttribute>

Attributsamlingen som ActAs-token ska serialiseras till.

tokenDescriptor
SecurityTokenDescriptor

Tokenbeskrivningen.

Undantag

subject är null.

-eller-

tokenDescriptor är null.

Gäller för