159 references to Elements
System.IdentityModel (159)
System\IdentityModel\Metadata\MetadataSerializer.cs (8)
855
else if (reader.IsStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace))
3177
if (!reader.IsStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace))
3179
reader.ReadStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace);
3197
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Name, Saml2Constants.
Elements
.Attribute));
3208
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Namespace, Saml2Constants.
Elements
.Action));
3221
while (reader.IsStartElement(Saml2Constants.
Elements
.AttributeValue, Saml2Constants.Namespace))
3291
writer.WriteStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace);
3311
writer.WriteStartElement(Saml2Constants.
Elements
.AttributeValue, Saml2Constants.Namespace);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (150)
469
return reader.IsStartElement(SAML2.
Elements
.Assertion, SAML2.Namespace)
470
|| reader.IsStartElement(SAML2.
Elements
.EncryptedAssertion, SAML2.Namespace);
870
return reader.IsStartElement(SAML2.
Elements
.Assertion, SAML2.Namespace)
871
|| reader.IsStartElement(SAML2.
Elements
.EncryptedAssertion, SAML2.Namespace);
2305
if (reader.IsStartElement(Saml2Constants.
Elements
.NameID, Saml2Constants.Namespace))
2309
else if (reader.IsStartElement(Saml2Constants.
Elements
.EncryptedID, Saml2Constants.Namespace))
2313
else if (reader.IsStartElement(Saml2Constants.
Elements
.BaseID, Saml2Constants.Namespace))
2354
if (!reader.IsStartElement(Saml2Constants.
Elements
.Action, Saml2Constants.Namespace))
2356
reader.ReadStartElement(Saml2Constants.
Elements
.Action, Saml2Constants.Namespace);
2362
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.
Elements
.Action, Saml2Constants.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));
2438
writer.WriteStartElement(Saml2Constants.
Elements
.Action, Saml2Constants.Namespace);
2472
if (!reader.IsStartElement(Saml2Constants.
Elements
.Advice, Saml2Constants.Namespace))
2474
reader.ReadStartElement(Saml2Constants.
Elements
.Advice, Saml2Constants.Namespace);
2494
if (reader.IsStartElement(Saml2Constants.
Elements
.AssertionIDRef, Saml2Constants.Namespace))
2498
else if (reader.IsStartElement(Saml2Constants.
Elements
.AssertionURIRef, Saml2Constants.Namespace))
2502
else if (reader.IsStartElement(Saml2Constants.
Elements
.Assertion, Saml2Constants.Namespace))
2506
else if (reader.IsStartElement(Saml2Constants.
Elements
.EncryptedAssertion, Saml2Constants.Namespace))
2557
writer.WriteStartElement(Saml2Constants.
Elements
.Advice, Saml2Constants.Namespace);
2562
writer.WriteElementString(Saml2Constants.
Elements
.AssertionIDRef, Saml2Constants.Namespace, id.Value);
2568
writer.WriteElementString(Saml2Constants.
Elements
.AssertionURIRef, Saml2Constants.Namespace, uri.AbsoluteUri);
2614
if (reader.IsStartElement(Saml2Constants.
Elements
.EncryptedAssertion, Saml2Constants.Namespace))
2628
if (!plaintextReader.IsStartElement(Saml2Constants.
Elements
.Assertion, Saml2Constants.Namespace))
2630
plaintextReader.ReadStartElement(Saml2Constants.
Elements
.Assertion, Saml2Constants.Namespace);
2660
throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Version, Saml2Constants.
Elements
.Assertion));
2672
throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.ID, Saml2Constants.
Elements
.Assertion));
2681
throw DiagnosticUtility.ThrowHelperXml(realReader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.IssueInstant, Saml2Constants.
Elements
.Assertion));
2696
if (realReader.IsStartElement(Saml2Constants.
Elements
.Subject, Saml2Constants.Namespace))
2702
if (realReader.IsStartElement(Saml2Constants.
Elements
.Conditions, Saml2Constants.Namespace))
2708
if (realReader.IsStartElement(Saml2Constants.
Elements
.Advice, Saml2Constants.Namespace))
2718
if (realReader.IsStartElement(Saml2Constants.
Elements
.Statement, Saml2Constants.Namespace))
2722
else if (realReader.IsStartElement(Saml2Constants.
Elements
.AttributeStatement, Saml2Constants.Namespace))
2726
else if (realReader.IsStartElement(Saml2Constants.
Elements
.AuthnStatement, Saml2Constants.Namespace))
2730
else if (realReader.IsStartElement(Saml2Constants.
Elements
.AuthzDecisionStatement, Saml2Constants.Namespace))
2871
writer.WriteStartElement(Saml2Constants.
Elements
.Assertion, Saml2Constants.Namespace);
2941
originalWriter.WriteStartElement(Saml2Constants.
Elements
.EncryptedAssertion, Saml2Constants.Namespace);
2971
if (!reader.IsStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace))
2973
reader.ReadStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace);
2991
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Name, Saml2Constants.
Elements
.Attribute));
3002
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Namespace, Saml2Constants.
Elements
.Action));
3033
while (reader.IsStartElement(Saml2Constants.
Elements
.AttributeValue, Saml2Constants.Namespace))
3154
reader.ReadStartElement(Saml2Constants.
Elements
.AttributeValue, Saml2Constants.Namespace);
3199
writer.WriteStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace);
3236
writer.WriteStartElement(Saml2Constants.
Elements
.AttributeValue, Saml2Constants.Namespace);
3294
if (reader.IsStartElement(Saml2Constants.
Elements
.Statement, Saml2Constants.Namespace))
3298
else if (!reader.IsStartElement(Saml2Constants.
Elements
.AttributeStatement, Saml2Constants.Namespace))
3300
reader.ReadStartElement(Saml2Constants.
Elements
.AttributeStatement, Saml2Constants.Namespace);
3316
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.
Elements
.AttributeStatement, Saml2Constants.Namespace));
3326
if (reader.IsStartElement(Saml2Constants.
Elements
.EncryptedAttribute, Saml2Constants.Namespace))
3330
else if (reader.IsStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace))
3343
reader.ReadStartElement(Saml2Constants.
Elements
.Attribute, Saml2Constants.Namespace);
3390
writer.WriteStartElement(Saml2Constants.
Elements
.AttributeStatement, Saml2Constants.Namespace);
3418
if (reader.IsStartElement(Saml2Constants.
Elements
.Condition, Saml2Constants.Namespace))
3422
else if (!reader.IsStartElement(Saml2Constants.
Elements
.AudienceRestriction, Saml2Constants.Namespace))
3424
reader.ReadStartElement(Saml2Constants.
Elements
.AudienceRestriction, Saml2Constants.Namespace);
3447
if (!reader.IsStartElement(Saml2Constants.
Elements
.Audience, Saml2Constants.Namespace))
3449
reader.ReadStartElement(Saml2Constants.
Elements
.Audience, Saml2Constants.Namespace);
3456
while (reader.IsStartElement(Saml2Constants.
Elements
.Audience, Saml2Constants.Namespace))
3506
writer.WriteStartElement(Saml2Constants.
Elements
.AudienceRestriction, Saml2Constants.Namespace);
3512
writer.WriteElementString(Saml2Constants.
Elements
.Audience, Saml2Constants.Namespace, audience.OriginalString);
3537
if (!reader.IsStartElement(Saml2Constants.
Elements
.AuthnContext, Saml2Constants.Namespace))
3539
reader.ReadStartElement(Saml2Constants.
Elements
.AuthnContext, Saml2Constants.Namespace);
3547
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.
Elements
.AuthnContext, Saml2Constants.Namespace));
3565
if (reader.IsStartElement(Saml2Constants.
Elements
.AuthnContextClassRef, Saml2Constants.Namespace))
3571
if (reader.IsStartElement(Saml2Constants.
Elements
.AuthnContextDecl, Saml2Constants.Namespace))
3578
if (reader.IsStartElement(Saml2Constants.
Elements
.AuthnContextDeclRef, Saml2Constants.Namespace))
3584
reader.ReadStartElement(Saml2Constants.
Elements
.AuthnContextDeclRef, Saml2Constants.Namespace);
3591
while (reader.IsStartElement(Saml2Constants.
Elements
.AuthenticatingAuthority, Saml2Constants.Namespace))
3642
writer.WriteStartElement(Saml2Constants.
Elements
.AuthnContext, Saml2Constants.Namespace);
3647
writer.WriteElementString(Saml2Constants.
Elements
.AuthnContextClassRef, Saml2Constants.Namespace, data.ClassReference.AbsoluteUri);
3653
writer.WriteElementString(Saml2Constants.
Elements
.AuthnContextDeclRef, Saml2Constants.Namespace, data.DeclarationReference.AbsoluteUri);
3659
writer.WriteElementString(Saml2Constants.
Elements
.AuthenticatingAuthority, Saml2Constants.Namespace, authority.AbsoluteUri);
3681
if (reader.IsStartElement(Saml2Constants.
Elements
.Statement, Saml2Constants.Namespace))
3685
else if (!reader.IsStartElement(Saml2Constants.
Elements
.AuthnStatement, Saml2Constants.Namespace))
3687
reader.ReadStartElement(Saml2Constants.
Elements
.AuthnStatement, Saml2Constants.Namespace);
3712
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.
Elements
.AuthnStatement, Saml2Constants.Namespace));
3719
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.AuthnInstant, Saml2Constants.
Elements
.AuthnStatement));
3738
if (reader.IsStartElement(Saml2Constants.
Elements
.SubjectLocality, Saml2Constants.Namespace))
3791
writer.WriteStartElement(Saml2Constants.
Elements
.AuthnStatement, Saml2Constants.Namespace);
3837
if (reader.IsStartElement(Saml2Constants.
Elements
.Statement, Saml2Constants.Namespace))
3841
else if (!reader.IsStartElement(Saml2Constants.
Elements
.AuthzDecisionStatement, Saml2Constants.Namespace))
3843
reader.ReadStartElement(Saml2Constants.
Elements
.AuthzDecisionStatement, Saml2Constants.Namespace);
3865
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.
Elements
.AuthzDecisionStatement, Saml2Constants.Namespace));
3872
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Decision, Saml2Constants.
Elements
.AuthzDecisionStatement));
3895
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001, Saml2Constants.Attributes.Resource, Saml2Constants.
Elements
.AuthzDecisionStatement));
3920
while (reader.IsStartElement(Saml2Constants.
Elements
.Action, Saml2Constants.Namespace));
3923
if (reader.IsStartElement(Saml2Constants.
Elements
.Evidence, Saml2Constants.Namespace))
3974
writer.WriteStartElement(Saml2Constants.
Elements
.AuthzDecisionStatement, Saml2Constants.Namespace);
4016
if (!reader.IsStartElement(Saml2Constants.
Elements
.Conditions, Saml2Constants.Namespace))
4018
reader.ReadStartElement(Saml2Constants.
Elements
.Conditions, Saml2Constants.Namespace);
4055
if (reader.IsStartElement(Saml2Constants.
Elements
.Condition, Saml2Constants.Namespace))
4074
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.
Elements
.OneTimeUse));
4084
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.
Elements
.ProxyRestricton));
4095
else if (reader.IsStartElement(Saml2Constants.
Elements
.AudienceRestriction, Saml2Constants.Namespace))
4099
else if (reader.IsStartElement(Saml2Constants.
Elements
.OneTimeUse, Saml2Constants.Namespace))
4103
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.
Elements
.OneTimeUse));
4109
else if (reader.IsStartElement(Saml2Constants.
Elements
.ProxyRestricton, Saml2Constants.Namespace))
4113
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4115, Saml2Constants.
Elements
.ProxyRestricton));
4164
writer.WriteStartElement(Saml2Constants.
Elements
.Conditions, Saml2Constants.Namespace);
4187
writer.WriteStartElement(Saml2Constants.
Elements
.OneTimeUse, Saml2Constants.Namespace);
4214
if (!reader.IsStartElement(Saml2Constants.
Elements
.Evidence, Saml2Constants.Namespace))
4216
reader.ReadStartElement(Saml2Constants.
Elements
.Evidence, Saml2Constants.Namespace);
4222
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.
Elements
.Evidence, Saml2Constants.Namespace));
4239
if (reader.IsStartElement(Saml2Constants.
Elements
.AssertionIDRef, Saml2Constants.Namespace))
4243
else if (reader.IsStartElement(Saml2Constants.
Elements
.AssertionURIRef, Saml2Constants.Namespace))
4247
else if (reader.IsStartElement(Saml2Constants.
Elements
.Assertion, Saml2Constants.Namespace))
4251
else if (reader.IsStartElement(Saml2Constants.
Elements
.EncryptedAssertion, Saml2Constants.Namespace))
4311
writer.WriteStartElement(Saml2Constants.
Elements
.Evidence, Saml2Constants.Namespace);
4316
writer.WriteElementString(Saml2Constants.
Elements
.AssertionIDRef, Saml2Constants.Namespace, id.Value);
4322
writer.WriteElementString(Saml2Constants.
Elements
.AssertionURIRef, Saml2Constants.Namespace, uri.AbsoluteUri);
4348
if (!reader.IsStartElement(Saml2Constants.
Elements
.Issuer, Saml2Constants.Namespace))
4350
reader.ReadStartElement(Saml2Constants.
Elements
.Issuer, Saml2Constants.Namespace);
4373
writer.WriteStartElement(Saml2Constants.
Elements
.Issuer, Saml2Constants.Namespace);
4492
if (!reader.IsStartElement(Saml2Constants.
Elements
.NameID, Saml2Constants.Namespace))
4494
reader.ReadStartElement(Saml2Constants.
Elements
.NameID, Saml2Constants.Namespace);
4539
plaintextWriter.WriteStartElement(Saml2Constants.
Elements
.NameID, Saml2Constants.Namespace);
4554
writer.WriteStartElement(Saml2Constants.
Elements
.EncryptedID, Saml2Constants.Namespace);
4575
writer.WriteStartElement(Saml2Constants.
Elements
.NameID, Saml2Constants.Namespace);
4607
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Format, Saml2Constants.
Elements
.NameID));
4690
if (!reader.IsStartElement(Saml2Constants.
Elements
.EncryptedID, Saml2Constants.Namespace))
4693
reader.ReadStartElement(Saml2Constants.
Elements
.EncryptedID, Saml2Constants.Namespace);
4778
if (reader.IsStartElement(Saml2Constants.
Elements
.Condition, Saml2Constants.Namespace))
4782
else if (!reader.IsStartElement(Saml2Constants.
Elements
.ProxyRestricton, Saml2Constants.Namespace))
4784
reader.ReadStartElement(Saml2Constants.
Elements
.ProxyRestricton, Saml2Constants.Namespace);
4811
while (reader.IsStartElement(Saml2Constants.
Elements
.Audience, Saml2Constants.Namespace))
4855
writer.WriteStartElement(Saml2Constants.
Elements
.ProxyRestricton, Saml2Constants.Namespace);
4866
writer.WriteElementString(Saml2Constants.
Elements
.Audience, uri.AbsoluteUri);
4891
if (!reader.IsStartElement(Saml2Constants.
Elements
.Statement, Saml2Constants.Namespace))
4893
reader.ReadStartElement(Saml2Constants.
Elements
.Statement, Saml2Constants.Namespace);
4992
if (!reader.IsStartElement(Saml2Constants.
Elements
.Subject, Saml2Constants.Namespace))
4994
reader.ReadStartElement(Saml2Constants.
Elements
.Subject, Saml2Constants.Namespace);
5016
subject.NameId = this.ReadSubjectId(reader, Saml2Constants.
Elements
.Subject);
5019
while (reader.IsStartElement(Saml2Constants.
Elements
.SubjectConfirmation, Saml2Constants.Namespace))
5076
writer.WriteStartElement(Saml2Constants.
Elements
.Subject, Saml2Constants.Namespace);
5109
if (!reader.IsStartElement(Saml2Constants.
Elements
.SubjectConfirmation, Saml2Constants.Namespace))
5111
reader.ReadStartElement(Saml2Constants.
Elements
.SubjectConfirmation, Saml2Constants.Namespace);
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));
5143
subjectConfirmation.NameIdentifier = this.ReadSubjectId(reader, Saml2Constants.
Elements
.SubjectConfirmation);
5146
if (reader.IsStartElement(Saml2Constants.
Elements
.SubjectConfirmationData, Saml2Constants.Namespace))
5201
writer.WriteStartElement(Saml2Constants.
Elements
.SubjectConfirmation, Saml2Constants.Namespace);
5238
if (!reader.IsStartElement(Saml2Constants.
Elements
.SubjectConfirmationData, Saml2Constants.Namespace))
5240
reader.ReadStartElement(Saml2Constants.
Elements
.SubjectConfirmationData, Saml2Constants.Namespace);
5307
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0011, Saml2Constants.Attributes.Recipient, Saml2Constants.
Elements
.SubjectConfirmationData));
5333
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID4114, Saml2Constants.
Elements
.SubjectConfirmationData));
5380
writer.WriteStartElement(Saml2Constants.
Elements
.SubjectConfirmationData, Saml2Constants.Namespace);
5445
if (!reader.IsStartElement(Saml2Constants.
Elements
.SubjectLocality, Saml2Constants.Namespace))
5447
reader.ReadStartElement(Saml2Constants.
Elements
.SubjectLocality, Saml2Constants.Namespace);
5510
writer.WriteStartElement(Saml2Constants.
Elements
.SubjectLocality, Saml2Constants.Namespace);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
2730
reader.ReadStartElement(Saml2Constants.
Elements
.AttributeValue, SamlConstants.Namespace);