SetDelegateFromAttribute Method
TOC
Collapse the table of content
Expand the table of content

SamlSecurityTokenHandler.SetDelegateFromAttribute Method (SamlAttribute, ClaimsIdentity, String)

.NET Framework (current version)
 

This method gets called when a special type of SamlAttribute is detected. The SamlAttribute passed in wraps a SamlAttribute that contains a collection of attribute values (in the P:System.IdentityModel.Tokens.SamlAttribute.Values property), each of which will get mapped to a claim. All of the claims will be returned in an ClaimsIdentity with the specified issuer.

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

protected virtual void SetDelegateFromAttribute(
	SamlAttribute attribute,
	ClaimsIdentity subject,
	string issuer
)

Parameters

attribute
Type: System.IdentityModel.Tokens.SamlAttribute

The SamlAttribute to use.

subject
Type: System.Security.Claims.ClaimsIdentity

The ClaimsIdentity that is the subject of this token.

issuer
Type: System.String

The issuer of the claim.

Exception Condition
InvalidOperationException

The SamlAttribute does not contain any valid attribute values.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft