164 references to Namespace
System.IdentityModel (164)
System\IdentityModel\Metadata\MetadataSerializer.cs (7)
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
);
3191
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AttributeType, Saml2Constants.
Namespace
);
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 (157)
469
return reader.IsStartElement(SAML2.Elements.Assertion, SAML2.
Namespace
)
470
|| reader.IsStartElement(SAML2.Elements.EncryptedAssertion, SAML2.
Namespace
);
747
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.EncryptedElementType, Saml2Constants.
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
))
2321
|| XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.BaseIDAbstractType, Saml2Constants.
Namespace
))
2327
if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.NameIDType, 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
));
2374
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.ActionType, Saml2Constants.
Namespace
);
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
);
2485
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AdviceType, 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
);
2654
XmlUtil.ValidateXsiType(realReader, Saml2Constants.Types.AssertionType, Saml2Constants.
Namespace
);
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
);
2985
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AttributeType, Saml2Constants.
Namespace
);
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
);
3311
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AttributeStatementType, Saml2Constants.
Namespace
, isStatementElement);
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
);
3435
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AudienceRestrictionType, Saml2Constants.
Namespace
, isConditionElement);
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
));
3553
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AuthnContextType, 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
);
3707
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AuthnStatementType, Saml2Constants.
Namespace
, isStatementElement);
3712
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthnStatement, Saml2Constants.
Namespace
));
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
);
3860
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AuthzDecisionStatementType, Saml2Constants.
Namespace
, isStatementElement);
3865
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthzDecisionStatement, Saml2Constants.
Namespace
));
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
);
4031
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.ConditionsType, Saml2Constants.
Namespace
);
4055
if (reader.IsStartElement(Saml2Constants.Elements.Condition, Saml2Constants.
Namespace
))
4062
|| XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.ConditionAbstractType, Saml2Constants.
Namespace
))
4066
else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AudienceRestrictionType, Saml2Constants.
Namespace
))
4070
else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.OneTimeUseType, Saml2Constants.
Namespace
))
4080
else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.ProxyRestrictionType, Saml2Constants.
Namespace
))
4095
else if (reader.IsStartElement(Saml2Constants.Elements.AudienceRestriction, Saml2Constants.
Namespace
))
4099
else if (reader.IsStartElement(Saml2Constants.Elements.OneTimeUse, Saml2Constants.
Namespace
))
4109
else if (reader.IsStartElement(Saml2Constants.Elements.ProxyRestricton, Saml2Constants.
Namespace
))
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
));
4232
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.EvidenceType, 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
);
4599
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.NameIDType, Saml2Constants.
Namespace
);
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
);
4797
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.ProxyRestrictionType, Saml2Constants.
Namespace
, isConditionElement);
4811
while (reader.IsStartElement(Saml2Constants.Elements.Audience, Saml2Constants.
Namespace
))
4855
writer.WriteStartElement(Saml2Constants.Elements.ProxyRestricton, Saml2Constants.
Namespace
);
4891
if (!reader.IsStartElement(Saml2Constants.Elements.Statement, Saml2Constants.
Namespace
))
4893
reader.ReadStartElement(Saml2Constants.Elements.Statement, Saml2Constants.
Namespace
);
4902
|| XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.StatementAbstractType, Saml2Constants.
Namespace
))
4908
if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AttributeStatementType, Saml2Constants.
Namespace
))
4912
else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AuthnStatementType, Saml2Constants.
Namespace
))
4916
else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AuthzDecisionStatementType, Saml2Constants.
Namespace
))
4992
if (!reader.IsStartElement(Saml2Constants.Elements.Subject, Saml2Constants.
Namespace
))
4994
reader.ReadStartElement(Saml2Constants.Elements.Subject, Saml2Constants.
Namespace
);
5009
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.SubjectType, Saml2Constants.
Namespace
);
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
);
5121
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.SubjectConfirmationType, Saml2Constants.
Namespace
);
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
);
5257
if (XmlUtil.EqualsQName(type, Saml2Constants.Types.KeyInfoConfirmationDataType, Saml2Constants.
Namespace
))
5261
else if (!XmlUtil.EqualsQName(type, Saml2Constants.Types.SubjectConfirmationDataType, Saml2Constants.
Namespace
))
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
);
5458
XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.SubjectLocalityType, Saml2Constants.
Namespace
);
5510
writer.WriteStartElement(Saml2Constants.Elements.SubjectLocality, Saml2Constants.
Namespace
);