System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (50)
1574string ns = reader.GetAttribute(SamlConstants.AttributeNames.Namespace, null);
1615writer.WriteAttributeString(SamlConstants.AttributeNames.Namespace, null, action.Namespace);
1759string attributeValue = wrappedReader.GetAttribute(SamlConstants.AttributeNames.MajorVersion, null);
1762throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.MajorVersion)));
1767attributeValue = wrappedReader.GetAttribute(SamlConstants.AttributeNames.MinorVersion, null);
1770throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.MinorVersion)));
1780attributeValue = wrappedReader.GetAttribute(SamlConstants.AttributeNames.AssertionId, null);
1783throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.AssertionId)));
1793attributeValue = wrappedReader.GetAttribute(SamlConstants.AttributeNames.Issuer, null);
1796throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4075, SamlConstants.AttributeNames.Issuer)));
1801attributeValue = wrappedReader.GetAttribute(SamlConstants.AttributeNames.IssueInstant, null);
1879writer.WriteAttributeString(SamlConstants.AttributeNames.MajorVersion, null, Convert.ToString(SamlConstants.MajorVersionValue, CultureInfo.InvariantCulture));
1880writer.WriteAttributeString(SamlConstants.AttributeNames.MinorVersion, null, Convert.ToString(SamlConstants.MinorVersionValue, CultureInfo.InvariantCulture));
1881writer.WriteAttributeString(SamlConstants.AttributeNames.AssertionId, null, assertion.AssertionId);
1882writer.WriteAttributeString(SamlConstants.AttributeNames.Issuer, null, assertion.Issuer);
1883writer.WriteAttributeString(SamlConstants.AttributeNames.IssueInstant, null, assertion.IssueInstant.ToUniversalTime().ToString(DateTimeFormats.Generated, CultureInfo.InvariantCulture));
1922string time = reader.GetAttribute(SamlConstants.AttributeNames.NotBefore, null);
1929time = reader.GetAttribute(SamlConstants.AttributeNames.NotOnOrAfter, null);
1987SamlConstants.AttributeNames.NotBefore,
1996SamlConstants.AttributeNames.NotOnOrAfter,
2318subject.NameFormat = reader.GetAttribute(SamlConstants.AttributeNames.NameIdentifierFormat, null);
2319subject.NameQualifier = reader.GetAttribute(SamlConstants.AttributeNames.NameIdentifierNameQualifier, null);
2413writer.WriteAttributeString(SamlConstants.AttributeNames.NameIdentifierFormat, null, subject.NameFormat);
2417writer.WriteAttributeString(SamlConstants.AttributeNames.NameIdentifierNameQualifier, null, subject.NameQualifier);
2602attribute.Name = reader.GetAttribute(SamlConstants.AttributeNames.AttributeName, null);
2608attribute.Namespace = reader.GetAttribute(SamlConstants.AttributeNames.AttributeNamespace, null);
2620string originalIssuer = reader.GetAttribute(SamlConstants.AttributeNames.OriginalIssuer, ClaimType2009Namespace);
2624originalIssuer = reader.GetAttribute(SamlConstants.AttributeNames.OriginalIssuer, ProductConstants.NamespaceUri);
2777writer.WriteAttributeString(SamlConstants.AttributeNames.AttributeName, null, attribute.Name);
2778writer.WriteAttributeString(SamlConstants.AttributeNames.AttributeNamespace, null, attribute.Namespace);
2783writer.WriteAttributeString(SamlConstants.AttributeNames.OriginalIssuer, ClaimType2009Namespace, SamlAttribute.OriginalIssuer);
2856string authInstance = reader.GetAttribute(SamlConstants.AttributeNames.AuthenticationInstant, null);
2864authnStatement.AuthenticationMethod = reader.GetAttribute(SamlConstants.AttributeNames.AuthenticationMethod, null);
2885authnStatement.DnsAddress = reader.GetAttribute(SamlConstants.AttributeNames.SubjectLocalityDNSAddress, null);
2886authnStatement.IPAddress = reader.GetAttribute(SamlConstants.AttributeNames.SubjectLocalityIPAddress, null);
2940writer.WriteAttributeString(SamlConstants.AttributeNames.AuthenticationMethod, null, statement.AuthenticationMethod);
2942writer.WriteAttributeString(SamlConstants.AttributeNames.AuthenticationInstant, null,
2954writer.WriteAttributeString(SamlConstants.AttributeNames.SubjectLocalityIPAddress, null, statement.IPAddress);
2959writer.WriteAttributeString(SamlConstants.AttributeNames.SubjectLocalityDNSAddress, null, statement.DnsAddress);
2989string authKind = reader.GetAttribute(SamlConstants.AttributeNames.AuthorityKind, null);
3019authorityBinding.Binding = reader.GetAttribute(SamlConstants.AttributeNames.Binding, null);
3025authorityBinding.Location = reader.GetAttribute(SamlConstants.AttributeNames.Location, null);
3068writer.WriteAttributeString(String.Empty, SamlConstants.AttributeNames.NamespaceAttributePrefix, null, authorityBinding.AuthorityKind.Namespace);
3072writer.WriteStartAttribute(SamlConstants.AttributeNames.AuthorityKind, null);
3083writer.WriteAttributeString(SamlConstants.AttributeNames.Location, null, authorityBinding.Location);
3085writer.WriteAttributeString(SamlConstants.AttributeNames.Binding, null, authorityBinding.Binding);
3151authzStatement.Resource = reader.GetAttribute(SamlConstants.AttributeNames.Resource, null);
3157string decisionString = reader.GetAttribute(SamlConstants.AttributeNames.Decision, null);
3240writer.WriteAttributeString(SamlConstants.AttributeNames.Decision, null, statement.AccessDecision.ToString());
3242writer.WriteAttributeString(SamlConstants.AttributeNames.Resource, null, statement.Resource);