Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.AddDelegateToAttributes Method

.NET Framework 4.5

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

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual void AddDelegateToAttributes(
	ClaimsIdentity subject,
	ICollection<SamlAttribute> attributes,
	SecurityTokenDescriptor tokenDescriptor
)

Parameters

subject
Type: System.Security.Claims.ClaimsIdentity

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

attributes
Type: System.Collections.Generic.ICollection<SamlAttribute>

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

tokenDescriptor
Type: System.IdentityModel.Tokens.SecurityTokenDescriptor

The token descriptor.

ExceptionCondition
ArgumentNullException

subject is null.

-or-

tokenDescriptor is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft