Edit

Share via


SamlSecurityTokenHandler.AddDelegateToAttributes Method

Definition

Adds all of the delegates associated with the ActAs subject into the attribute collection.

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)

Parameters

subject
ClaimsIdentity

The delegate of this ClaimsIdentity object will be serialized into a SamlAttribute. The delegate is specified by the Actor property.

attributes
ICollection<SamlAttribute>

The attribute collection to which the ActAs token will be serialized.

tokenDescriptor
SecurityTokenDescriptor

The token descriptor.

Exceptions

subject is null.

-or-

tokenDescriptor is null.

Applies to