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