Saml2SecurityTokenHandler.AddDelegateToAttributes Method

Definition

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

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

Parameters

subject
ClaimsIdentity

The delegate of this ClaimsIdentity object will be serialized into a Saml2Attribute.

attributes
ICollection<Saml2Attribute>

A collection of type Saml2Attribute.

tokenDescriptor
SecurityTokenDescriptor

The token descriptor.

Exceptions

subject is null.

-or-

tokenDescriptor is null.

Applies to