SamlSecurityTokenHandler.AddDelegateToAttributes Methode

Definition

Fügt alle Stellvertretungen, die dem ActAs-Betreff zugeordnet sind, der Attributauflistung hinzu.

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)

Parameter

subject
ClaimsIdentity

Der Delegat dieses ClaimsIdentity Objekts wird in eine SamlAttributeSerialisierung umgewandelt. Der Delegat wird von der Actor Eigenschaft angegeben.

attributes
ICollection<SamlAttribute>

Die Attributauflistung, auf die das ActAs-Token serialisiert wird.

tokenDescriptor
SecurityTokenDescriptor

Der Tokendeskriptor.

Ausnahmen

subject ist null.

-oder-

tokenDescriptor ist null.

Gilt für: