79 references to Attributes
System.IdentityModel (79)
System\IdentityModel\Metadata\MetadataSerializer.cs (8)
3194
value = reader.GetAttribute(Saml2Constants.
Attributes
.Name);
3197
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.Name, Saml2Constants.Elements.Attribute));
3203
value = reader.GetAttribute(Saml2Constants.
Attributes
.NameFormat);
3208
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.
Attributes
.Namespace, Saml2Constants.Elements.Action));
3215
attribute.FriendlyName = reader.GetAttribute(Saml2Constants.
Attributes
.FriendlyName);
3294
writer.WriteAttributeString(Saml2Constants.
Attributes
.Name, data.Name);
3299
writer.WriteAttributeString(Saml2Constants.
Attributes
.NameFormat, data.NameFormat.AbsoluteUri);
3305
writer.WriteAttributeString(Saml2Constants.
Attributes
.FriendlyName, data.FriendlyName);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (71)
2377
attributeValue = reader.GetAttribute(Saml2Constants.
Attributes
.Namespace);
2380
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.Namespace, Saml2Constants.Elements.Action));
2385
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.
Attributes
.Namespace, Saml2Constants.Elements.Action));
2441
writer.WriteAttributeString(Saml2Constants.
Attributes
.Namespace, data.Namespace.AbsoluteUri);
2657
string version = realReader.GetAttribute(Saml2Constants.
Attributes
.Version);
2660
throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.Version, Saml2Constants.Elements.Assertion));
2669
value = realReader.GetAttribute(Saml2Constants.
Attributes
.ID);
2672
throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.ID, Saml2Constants.Elements.Assertion));
2678
value = realReader.GetAttribute(Saml2Constants.
Attributes
.IssueInstant);
2681
throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.IssueInstant, Saml2Constants.Elements.Assertion));
2874
writer.WriteAttributeString(Saml2Constants.
Attributes
.ID, data.Id.Value);
2877
writer.WriteAttributeString(Saml2Constants.
Attributes
.IssueInstant, XmlConvert.ToString(data.IssueInstant.ToUniversalTime(), DateTimeFormats.Generated));
2880
writer.WriteAttributeString(Saml2Constants.
Attributes
.Version, data.Version);
2988
value = reader.GetAttribute(Saml2Constants.
Attributes
.Name);
2991
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.Name, Saml2Constants.Elements.Attribute));
2997
value = reader.GetAttribute(Saml2Constants.
Attributes
.NameFormat);
3002
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.
Attributes
.Namespace, Saml2Constants.Elements.Action));
3009
attribute.FriendlyName = reader.GetAttribute(Saml2Constants.
Attributes
.FriendlyName);
3015
string originalIssuer = reader.GetAttribute(Saml2Constants.
Attributes
.OriginalIssuer, ClaimType2009Namespace);
3019
originalIssuer = reader.GetAttribute(Saml2Constants.
Attributes
.OriginalIssuer, ProductConstants.NamespaceUri);
3202
writer.WriteAttributeString(Saml2Constants.
Attributes
.Name, data.Name);
3207
writer.WriteAttributeString(Saml2Constants.
Attributes
.NameFormat, data.NameFormat.AbsoluteUri);
3213
writer.WriteAttributeString(Saml2Constants.
Attributes
.FriendlyName, data.FriendlyName);
3219
writer.WriteAttributeString(Saml2Constants.
Attributes
.OriginalIssuer, ClaimType2009Namespace, data.OriginalIssuer);
3716
value = reader.GetAttribute(Saml2Constants.
Attributes
.AuthnInstant);
3719
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.AuthnInstant, Saml2Constants.Elements.AuthnStatement));
3725
sessionIndex = reader.GetAttribute(Saml2Constants.
Attributes
.SessionIndex);
3728
value = reader.GetAttribute(Saml2Constants.
Attributes
.SessionNotOnOrAfter);
3794
writer.WriteAttributeString(Saml2Constants.
Attributes
.AuthnInstant, XmlConvert.ToString(data.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated));
3799
writer.WriteAttributeString(Saml2Constants.
Attributes
.SessionIndex, data.SessionIndex);
3805
writer.WriteAttributeString(Saml2Constants.
Attributes
.SessionNotOnOrAfter, XmlConvert.ToString(data.SessionNotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated));
3869
value = reader.GetAttribute(Saml2Constants.
Attributes
.Decision);
3872
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.Decision, Saml2Constants.Elements.AuthzDecisionStatement));
3892
value = reader.GetAttribute(Saml2Constants.
Attributes
.Resource);
3895
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.Resource, Saml2Constants.Elements.AuthzDecisionStatement));
3977
writer.WriteAttributeString(Saml2Constants.
Attributes
.Decision, data.Decision.ToString());
3981
writer.WriteAttributeString(Saml2Constants.
Attributes
.Resource, data.Resource.Equals(Saml2AuthorizationDecisionStatement.EmptyResource) ? data.Resource.ToString() : data.Resource.AbsoluteUri);
4034
value = reader.GetAttribute(Saml2Constants.
Attributes
.NotBefore);
4041
value = reader.GetAttribute(Saml2Constants.
Attributes
.NotOnOrAfter);
4169
writer.WriteAttributeString(Saml2Constants.
Attributes
.NotBefore, XmlConvert.ToString(data.NotBefore.Value.ToUniversalTime(), DateTimeFormats.Generated));
4175
writer.WriteAttributeString(Saml2Constants.
Attributes
.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated));
4602
value = reader.GetAttribute(Saml2Constants.
Attributes
.Format);
4607
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.
Attributes
.Format, Saml2Constants.Elements.NameID));
4614
value = reader.GetAttribute(Saml2Constants.
Attributes
.NameQualifier);
4621
value = reader.GetAttribute(Saml2Constants.
Attributes
.SPNameQualifier);
4628
value = reader.GetAttribute(Saml2Constants.
Attributes
.SPProvidedID);
4734
writer.WriteAttributeString(Saml2Constants.
Attributes
.Format, data.Format.AbsoluteUri);
4740
writer.WriteAttributeString(Saml2Constants.
Attributes
.NameQualifier, data.NameQualifier);
4746
writer.WriteAttributeString(Saml2Constants.
Attributes
.SPNameQualifier, data.SPNameQualifier);
4752
writer.WriteAttributeString(Saml2Constants.
Attributes
.SPProvidedID, data.SPProvidedId);
4800
value = reader.GetAttribute(Saml2Constants.
Attributes
.Count);
4860
writer.WriteAttributeString(Saml2Constants.
Attributes
.Count, XmlConvert.ToString(data.Count.Value));
5124
string method = reader.GetAttribute(Saml2Constants.
Attributes
.Method);
5127
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.
Attributes
.Method, Saml2Constants.Elements.SubjectConfirmation));
5132
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.
Attributes
.Method, Saml2Constants.Elements.SubjectConfirmation));
5204
writer.WriteAttributeString(Saml2Constants.
Attributes
.Method, data.Method.AbsoluteUri);
5274
value = reader.GetAttribute(Saml2Constants.
Attributes
.Address);
5281
value = reader.GetAttribute(Saml2Constants.
Attributes
.InResponseTo);
5288
value = reader.GetAttribute(Saml2Constants.
Attributes
.NotBefore);
5295
value = reader.GetAttribute(Saml2Constants.
Attributes
.NotOnOrAfter);
5302
value = reader.GetAttribute(Saml2Constants.
Attributes
.Recipient);
5307
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.
Attributes
.Recipient, Saml2Constants.Elements.SubjectConfirmationData));
5393
writer.WriteAttributeString(Saml2Constants.
Attributes
.Address, data.Address);
5399
writer.WriteAttributeString(Saml2Constants.
Attributes
.InResponseTo, data.InResponseTo.Value);
5405
writer.WriteAttributeString(Saml2Constants.
Attributes
.NotBefore, XmlConvert.ToString(data.NotBefore.Value.ToUniversalTime(), DateTimeFormats.Generated));
5411
writer.WriteAttributeString(Saml2Constants.
Attributes
.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated));
5417
writer.WriteAttributeString(Saml2Constants.
Attributes
.Recipient, data.Recipient.OriginalString);
5461
subjectLocality.Address = reader.GetAttribute(Saml2Constants.
Attributes
.Address);
5464
subjectLocality.DnsName = reader.GetAttribute(Saml2Constants.
Attributes
.DNSName);
5515
writer.WriteAttributeString(Saml2Constants.
Attributes
.Address, data.Address);
5521
writer.WriteAttributeString(Saml2Constants.
Attributes
.DNSName, data.DnsName);