3 instantiations of Saml2Attribute
System.IdentityModel (3)
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
3200attribute = new Saml2Attribute(value);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1089Saml2Attribute attribute = new Saml2Attribute(claim.Type, claim.Value); 2994attribute = new Saml2Attribute(value);
59 references to Saml2Attribute
System.IdentityModel (59)
System\IdentityModel\Metadata\IdentityProviderSingleSignOnDescriptor.cs (4)
18Collection<Saml2Attribute> _supportedAttributes = new Collection<Saml2Attribute>(); 36/// Gets the supported <see cref="Saml2Attribute"/> collection. 38public ICollection<Saml2Attribute> SupportedAttributes
System\IdentityModel\Metadata\MetadataSerializer.cs (4)
2379foreach (Saml2Attribute attribute in identityProviderSingleSignOnDescriptor.SupportedAttributes) 3169protected virtual Saml2Attribute ReadAttribute(XmlReader reader) 3184Saml2Attribute attribute; 3278protected virtual void WriteAttribute(XmlWriter writer, Saml2Attribute data)
System\IdentityModel\Tokens\Saml2AttributeStatement.cs (10)
18private Collection<Saml2Attribute> attributes = new Collection<Saml2Attribute>(); 30/// <param name="attribute">The <see cref="Saml2Attribute"/> contained in this statement.</param> 31public Saml2AttributeStatement(Saml2Attribute attribute) 32: this(new Saml2Attribute[] { attribute }) 39/// <param name="attributes">The collection of <see cref="Saml2Attribute"/> elements contained in this statement.</param> 40public Saml2AttributeStatement(IEnumerable<Saml2Attribute> attributes) 47foreach (Saml2Attribute attribute in attributes) 59/// Gets the collection of <see cref="Saml2Attribute"/> of this statement. [Saml2Core, 2.7.3] 61public Collection<Saml2Attribute> Attributes
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (40)
1078/// <param name="claim">The <see cref="Claim"/> from which to generate a <see cref="Saml2Attribute"/>.</param> 1080/// <returns>A <see cref="Saml2Attribute"/> based on the claim.</returns> 1082protected virtual Saml2Attribute CreateAttribute(Claim claim, SecurityTokenDescriptor tokenDescriptor) 1089Saml2Attribute attribute = new Saml2Attribute(claim.Type, claim.Value); 1136List<Saml2Attribute> attributes = new List<Saml2Attribute>(); 1155ICollection<Saml2Attribute> collectedAttributes = this.CollectAttributeValues(attributes); 1170/// <returns>A <see cref="ICollection{T}"/> of <see cref="Saml2Attribute"/> with common attributes collected into value lists.</returns> 1171protected virtual ICollection<Saml2Attribute> CollectAttributeValues(ICollection<Saml2Attribute> attributes) 1173Dictionary<SamlAttributeKeyComparer.AttributeKey, Saml2Attribute> distinctAttributes = new Dictionary<SamlAttributeKeyComparer.AttributeKey, Saml2Attribute>(attributes.Count, new SamlAttributeKeyComparer()); 1176foreach (Saml2Attribute saml2Attribute in attributes) 1202/// <param name="subject">The delegate of this <see cref="ClaimsIdentity"/> will be serialized into a <see cref="Saml2Attribute"/>.</param> 1203/// <param name="attributes">A <see cref="ICollection{T}"/> of <see cref="Saml2Attribute"/>.</param> 1205protected virtual void AddDelegateToAttributes(ClaimsIdentity subject, ICollection<Saml2Attribute> attributes, SecurityTokenDescriptor tokenDescriptor) 1222List<Saml2Attribute> actingAsAttributes = new List<Saml2Attribute>(); 1234ICollection<Saml2Attribute> collectedAttributes = this.CollectAttributeValues(actingAsAttributes); 1244protected virtual string CreateXmlStringFromAttributes(IEnumerable<Saml2Attribute> attributes) 1252foreach (Saml2Attribute samlAttribute in attributes) 1828foreach (Saml2Attribute attribute in statement.Attributes) 1875/// <param name="attribute">The <see cref="Saml2Attribute"/> to use.</param> 1881protected virtual void SetDelegateFromAttribute(Saml2Attribute attribute, ClaimsIdentity subject, string issuer) 1889Saml2Attribute actingAsAttribute = null; 1903Saml2Attribute innerAttribute = this.ReadAttribute(dicReader); 2961/// <param name="reader">An <see cref="XmlReader"/> positioned at a <see cref="Saml2Attribute"/> element.</param> 2962/// <returns>A <see cref="Saml2Attribute"/> instance.</returns> 2963protected virtual Saml2Attribute ReadAttribute(XmlReader reader) 2978Saml2Attribute attribute; 3115/// <param name="reader">A <see cref="XmlReader"/> positioned at a <see cref="Saml2Attribute"/>.</param> 3116/// <param name="attribute">The <see cref="Saml2Attribute"/>.</param> 3119protected virtual string ReadAttributeValue(XmlReader reader, Saml2Attribute attribute) 3184/// <param name="writer">A <see cref="XmlWriter"/> to serialize the <see cref="Saml2Attribute"/>.</param> 3185/// <param name="data">The <see cref="Saml2Attribute"/> to serialize.</param> 3186protected virtual void WriteAttribute(XmlWriter writer, Saml2Attribute data) 3263/// <param name="writer">A <see cref="XmlWriter"/> to serialize the <see cref="Saml2Attribute"/>.</param> 3265/// <param name="attribute">The <see cref="Saml2Attribute"/> to serialize.</param> 3268protected virtual void WriteAttributeValue(XmlWriter writer, string value, Saml2Attribute attribute) 3393foreach (Saml2Attribute attribute in data.Attributes)
System\IdentityModel\Tokens\SamlAttributeKeyComparer.cs (1)
48public AttributeKey( Saml2Attribute attribute )