164 references to Namespace
System.IdentityModel (164)
System\IdentityModel\Metadata\MetadataSerializer.cs (7)
855else if (reader.IsStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace)) 3177if (!reader.IsStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace)) 3179reader.ReadStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace); 3191XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AttributeType, Saml2Constants.Namespace); 3221while (reader.IsStartElement(Saml2Constants.Elements.AttributeValue, Saml2Constants.Namespace)) 3291writer.WriteStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace); 3311writer.WriteStartElement(Saml2Constants.Elements.AttributeValue, Saml2Constants.Namespace);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (157)
469return reader.IsStartElement(SAML2.Elements.Assertion, SAML2.Namespace) 470|| reader.IsStartElement(SAML2.Elements.EncryptedAssertion, SAML2.Namespace); 747XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.EncryptedElementType, Saml2Constants.Namespace); 870return reader.IsStartElement(SAML2.Elements.Assertion, SAML2.Namespace) 871|| reader.IsStartElement(SAML2.Elements.EncryptedAssertion, SAML2.Namespace); 2305if (reader.IsStartElement(Saml2Constants.Elements.NameID, Saml2Constants.Namespace)) 2309else if (reader.IsStartElement(Saml2Constants.Elements.EncryptedID, Saml2Constants.Namespace)) 2313else if (reader.IsStartElement(Saml2Constants.Elements.BaseID, Saml2Constants.Namespace)) 2321|| XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.BaseIDAbstractType, Saml2Constants.Namespace)) 2327if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.NameIDType, Saml2Constants.Namespace)) 2354if (!reader.IsStartElement(Saml2Constants.Elements.Action, Saml2Constants.Namespace)) 2356reader.ReadStartElement(Saml2Constants.Elements.Action, Saml2Constants.Namespace); 2362throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.Action, Saml2Constants.Namespace)); 2374XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.ActionType, Saml2Constants.Namespace); 2438writer.WriteStartElement(Saml2Constants.Elements.Action, Saml2Constants.Namespace); 2472if (!reader.IsStartElement(Saml2Constants.Elements.Advice, Saml2Constants.Namespace)) 2474reader.ReadStartElement(Saml2Constants.Elements.Advice, Saml2Constants.Namespace); 2485XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AdviceType, Saml2Constants.Namespace); 2494if (reader.IsStartElement(Saml2Constants.Elements.AssertionIDRef, Saml2Constants.Namespace)) 2498else if (reader.IsStartElement(Saml2Constants.Elements.AssertionURIRef, Saml2Constants.Namespace)) 2502else if (reader.IsStartElement(Saml2Constants.Elements.Assertion, Saml2Constants.Namespace)) 2506else if (reader.IsStartElement(Saml2Constants.Elements.EncryptedAssertion, Saml2Constants.Namespace)) 2557writer.WriteStartElement(Saml2Constants.Elements.Advice, Saml2Constants.Namespace); 2562writer.WriteElementString(Saml2Constants.Elements.AssertionIDRef, Saml2Constants.Namespace, id.Value); 2568writer.WriteElementString(Saml2Constants.Elements.AssertionURIRef, Saml2Constants.Namespace, uri.AbsoluteUri); 2614if (reader.IsStartElement(Saml2Constants.Elements.EncryptedAssertion, Saml2Constants.Namespace)) 2628if (!plaintextReader.IsStartElement(Saml2Constants.Elements.Assertion, Saml2Constants.Namespace)) 2630plaintextReader.ReadStartElement(Saml2Constants.Elements.Assertion, Saml2Constants.Namespace); 2654XmlUtil.ValidateXsiType(realReader, Saml2Constants.Types.AssertionType, Saml2Constants.Namespace); 2696if (realReader.IsStartElement(Saml2Constants.Elements.Subject, Saml2Constants.Namespace)) 2702if (realReader.IsStartElement(Saml2Constants.Elements.Conditions, Saml2Constants.Namespace)) 2708if (realReader.IsStartElement(Saml2Constants.Elements.Advice, Saml2Constants.Namespace)) 2718if (realReader.IsStartElement(Saml2Constants.Elements.Statement, Saml2Constants.Namespace)) 2722else if (realReader.IsStartElement(Saml2Constants.Elements.AttributeStatement, Saml2Constants.Namespace)) 2726else if (realReader.IsStartElement(Saml2Constants.Elements.AuthnStatement, Saml2Constants.Namespace)) 2730else if (realReader.IsStartElement(Saml2Constants.Elements.AuthzDecisionStatement, Saml2Constants.Namespace)) 2871writer.WriteStartElement(Saml2Constants.Elements.Assertion, Saml2Constants.Namespace); 2941originalWriter.WriteStartElement(Saml2Constants.Elements.EncryptedAssertion, Saml2Constants.Namespace); 2971if (!reader.IsStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace)) 2973reader.ReadStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace); 2985XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AttributeType, Saml2Constants.Namespace); 3033while (reader.IsStartElement(Saml2Constants.Elements.AttributeValue, Saml2Constants.Namespace)) 3154reader.ReadStartElement(Saml2Constants.Elements.AttributeValue, Saml2Constants.Namespace); 3199writer.WriteStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace); 3236writer.WriteStartElement(Saml2Constants.Elements.AttributeValue, Saml2Constants.Namespace); 3294if (reader.IsStartElement(Saml2Constants.Elements.Statement, Saml2Constants.Namespace)) 3298else if (!reader.IsStartElement(Saml2Constants.Elements.AttributeStatement, Saml2Constants.Namespace)) 3300reader.ReadStartElement(Saml2Constants.Elements.AttributeStatement, Saml2Constants.Namespace); 3311XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AttributeStatementType, Saml2Constants.Namespace, isStatementElement); 3316throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AttributeStatement, Saml2Constants.Namespace)); 3326if (reader.IsStartElement(Saml2Constants.Elements.EncryptedAttribute, Saml2Constants.Namespace)) 3330else if (reader.IsStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace)) 3343reader.ReadStartElement(Saml2Constants.Elements.Attribute, Saml2Constants.Namespace); 3390writer.WriteStartElement(Saml2Constants.Elements.AttributeStatement, Saml2Constants.Namespace); 3418if (reader.IsStartElement(Saml2Constants.Elements.Condition, Saml2Constants.Namespace)) 3422else if (!reader.IsStartElement(Saml2Constants.Elements.AudienceRestriction, Saml2Constants.Namespace)) 3424reader.ReadStartElement(Saml2Constants.Elements.AudienceRestriction, Saml2Constants.Namespace); 3435XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AudienceRestrictionType, Saml2Constants.Namespace, isConditionElement); 3447if (!reader.IsStartElement(Saml2Constants.Elements.Audience, Saml2Constants.Namespace)) 3449reader.ReadStartElement(Saml2Constants.Elements.Audience, Saml2Constants.Namespace); 3456while (reader.IsStartElement(Saml2Constants.Elements.Audience, Saml2Constants.Namespace)) 3506writer.WriteStartElement(Saml2Constants.Elements.AudienceRestriction, Saml2Constants.Namespace); 3512writer.WriteElementString(Saml2Constants.Elements.Audience, Saml2Constants.Namespace, audience.OriginalString); 3537if (!reader.IsStartElement(Saml2Constants.Elements.AuthnContext, Saml2Constants.Namespace)) 3539reader.ReadStartElement(Saml2Constants.Elements.AuthnContext, Saml2Constants.Namespace); 3547throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthnContext, Saml2Constants.Namespace)); 3553XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AuthnContextType, Saml2Constants.Namespace); 3565if (reader.IsStartElement(Saml2Constants.Elements.AuthnContextClassRef, Saml2Constants.Namespace)) 3571if (reader.IsStartElement(Saml2Constants.Elements.AuthnContextDecl, Saml2Constants.Namespace)) 3578if (reader.IsStartElement(Saml2Constants.Elements.AuthnContextDeclRef, Saml2Constants.Namespace)) 3584reader.ReadStartElement(Saml2Constants.Elements.AuthnContextDeclRef, Saml2Constants.Namespace); 3591while (reader.IsStartElement(Saml2Constants.Elements.AuthenticatingAuthority, Saml2Constants.Namespace)) 3642writer.WriteStartElement(Saml2Constants.Elements.AuthnContext, Saml2Constants.Namespace); 3647writer.WriteElementString(Saml2Constants.Elements.AuthnContextClassRef, Saml2Constants.Namespace, data.ClassReference.AbsoluteUri); 3653writer.WriteElementString(Saml2Constants.Elements.AuthnContextDeclRef, Saml2Constants.Namespace, data.DeclarationReference.AbsoluteUri); 3659writer.WriteElementString(Saml2Constants.Elements.AuthenticatingAuthority, Saml2Constants.Namespace, authority.AbsoluteUri); 3681if (reader.IsStartElement(Saml2Constants.Elements.Statement, Saml2Constants.Namespace)) 3685else if (!reader.IsStartElement(Saml2Constants.Elements.AuthnStatement, Saml2Constants.Namespace)) 3687reader.ReadStartElement(Saml2Constants.Elements.AuthnStatement, Saml2Constants.Namespace); 3707XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AuthnStatementType, Saml2Constants.Namespace, isStatementElement); 3712throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthnStatement, Saml2Constants.Namespace)); 3738if (reader.IsStartElement(Saml2Constants.Elements.SubjectLocality, Saml2Constants.Namespace)) 3791writer.WriteStartElement(Saml2Constants.Elements.AuthnStatement, Saml2Constants.Namespace); 3837if (reader.IsStartElement(Saml2Constants.Elements.Statement, Saml2Constants.Namespace)) 3841else if (!reader.IsStartElement(Saml2Constants.Elements.AuthzDecisionStatement, Saml2Constants.Namespace)) 3843reader.ReadStartElement(Saml2Constants.Elements.AuthzDecisionStatement, Saml2Constants.Namespace); 3860XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.AuthzDecisionStatementType, Saml2Constants.Namespace, isStatementElement); 3865throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.AuthzDecisionStatement, Saml2Constants.Namespace)); 3920while (reader.IsStartElement(Saml2Constants.Elements.Action, Saml2Constants.Namespace)); 3923if (reader.IsStartElement(Saml2Constants.Elements.Evidence, Saml2Constants.Namespace)) 3974writer.WriteStartElement(Saml2Constants.Elements.AuthzDecisionStatement, Saml2Constants.Namespace); 4016if (!reader.IsStartElement(Saml2Constants.Elements.Conditions, Saml2Constants.Namespace)) 4018reader.ReadStartElement(Saml2Constants.Elements.Conditions, Saml2Constants.Namespace); 4031XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.ConditionsType, Saml2Constants.Namespace); 4055if (reader.IsStartElement(Saml2Constants.Elements.Condition, Saml2Constants.Namespace)) 4062|| XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.ConditionAbstractType, Saml2Constants.Namespace)) 4066else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AudienceRestrictionType, Saml2Constants.Namespace)) 4070else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.OneTimeUseType, Saml2Constants.Namespace)) 4080else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.ProxyRestrictionType, Saml2Constants.Namespace)) 4095else if (reader.IsStartElement(Saml2Constants.Elements.AudienceRestriction, Saml2Constants.Namespace)) 4099else if (reader.IsStartElement(Saml2Constants.Elements.OneTimeUse, Saml2Constants.Namespace)) 4109else if (reader.IsStartElement(Saml2Constants.Elements.ProxyRestricton, Saml2Constants.Namespace)) 4164writer.WriteStartElement(Saml2Constants.Elements.Conditions, Saml2Constants.Namespace); 4187writer.WriteStartElement(Saml2Constants.Elements.OneTimeUse, Saml2Constants.Namespace); 4214if (!reader.IsStartElement(Saml2Constants.Elements.Evidence, Saml2Constants.Namespace)) 4216reader.ReadStartElement(Saml2Constants.Elements.Evidence, Saml2Constants.Namespace); 4222throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061, Saml2Constants.Elements.Evidence, Saml2Constants.Namespace)); 4232XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.EvidenceType, Saml2Constants.Namespace); 4239if (reader.IsStartElement(Saml2Constants.Elements.AssertionIDRef, Saml2Constants.Namespace)) 4243else if (reader.IsStartElement(Saml2Constants.Elements.AssertionURIRef, Saml2Constants.Namespace)) 4247else if (reader.IsStartElement(Saml2Constants.Elements.Assertion, Saml2Constants.Namespace)) 4251else if (reader.IsStartElement(Saml2Constants.Elements.EncryptedAssertion, Saml2Constants.Namespace)) 4311writer.WriteStartElement(Saml2Constants.Elements.Evidence, Saml2Constants.Namespace); 4316writer.WriteElementString(Saml2Constants.Elements.AssertionIDRef, Saml2Constants.Namespace, id.Value); 4322writer.WriteElementString(Saml2Constants.Elements.AssertionURIRef, Saml2Constants.Namespace, uri.AbsoluteUri); 4348if (!reader.IsStartElement(Saml2Constants.Elements.Issuer, Saml2Constants.Namespace)) 4350reader.ReadStartElement(Saml2Constants.Elements.Issuer, Saml2Constants.Namespace); 4373writer.WriteStartElement(Saml2Constants.Elements.Issuer, Saml2Constants.Namespace); 4492if (!reader.IsStartElement(Saml2Constants.Elements.NameID, Saml2Constants.Namespace)) 4494reader.ReadStartElement(Saml2Constants.Elements.NameID, Saml2Constants.Namespace); 4539plaintextWriter.WriteStartElement(Saml2Constants.Elements.NameID, Saml2Constants.Namespace); 4554writer.WriteStartElement(Saml2Constants.Elements.EncryptedID, Saml2Constants.Namespace); 4575writer.WriteStartElement(Saml2Constants.Elements.NameID, Saml2Constants.Namespace); 4599XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.NameIDType, Saml2Constants.Namespace); 4690if (!reader.IsStartElement(Saml2Constants.Elements.EncryptedID, Saml2Constants.Namespace)) 4693reader.ReadStartElement(Saml2Constants.Elements.EncryptedID, Saml2Constants.Namespace); 4778if (reader.IsStartElement(Saml2Constants.Elements.Condition, Saml2Constants.Namespace)) 4782else if (!reader.IsStartElement(Saml2Constants.Elements.ProxyRestricton, Saml2Constants.Namespace)) 4784reader.ReadStartElement(Saml2Constants.Elements.ProxyRestricton, Saml2Constants.Namespace); 4797XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.ProxyRestrictionType, Saml2Constants.Namespace, isConditionElement); 4811while (reader.IsStartElement(Saml2Constants.Elements.Audience, Saml2Constants.Namespace)) 4855writer.WriteStartElement(Saml2Constants.Elements.ProxyRestricton, Saml2Constants.Namespace); 4891if (!reader.IsStartElement(Saml2Constants.Elements.Statement, Saml2Constants.Namespace)) 4893reader.ReadStartElement(Saml2Constants.Elements.Statement, Saml2Constants.Namespace); 4902|| XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.StatementAbstractType, Saml2Constants.Namespace)) 4908if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AttributeStatementType, Saml2Constants.Namespace)) 4912else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AuthnStatementType, Saml2Constants.Namespace)) 4916else if (XmlUtil.EqualsQName(declaredType, Saml2Constants.Types.AuthzDecisionStatementType, Saml2Constants.Namespace)) 4992if (!reader.IsStartElement(Saml2Constants.Elements.Subject, Saml2Constants.Namespace)) 4994reader.ReadStartElement(Saml2Constants.Elements.Subject, Saml2Constants.Namespace); 5009XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.SubjectType, Saml2Constants.Namespace); 5019while (reader.IsStartElement(Saml2Constants.Elements.SubjectConfirmation, Saml2Constants.Namespace)) 5076writer.WriteStartElement(Saml2Constants.Elements.Subject, Saml2Constants.Namespace); 5109if (!reader.IsStartElement(Saml2Constants.Elements.SubjectConfirmation, Saml2Constants.Namespace)) 5111reader.ReadStartElement(Saml2Constants.Elements.SubjectConfirmation, Saml2Constants.Namespace); 5121XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.SubjectConfirmationType, Saml2Constants.Namespace); 5146if (reader.IsStartElement(Saml2Constants.Elements.SubjectConfirmationData, Saml2Constants.Namespace)) 5201writer.WriteStartElement(Saml2Constants.Elements.SubjectConfirmation, Saml2Constants.Namespace); 5238if (!reader.IsStartElement(Saml2Constants.Elements.SubjectConfirmationData, Saml2Constants.Namespace)) 5240reader.ReadStartElement(Saml2Constants.Elements.SubjectConfirmationData, Saml2Constants.Namespace); 5257if (XmlUtil.EqualsQName(type, Saml2Constants.Types.KeyInfoConfirmationDataType, Saml2Constants.Namespace)) 5261else if (!XmlUtil.EqualsQName(type, Saml2Constants.Types.SubjectConfirmationDataType, Saml2Constants.Namespace)) 5380writer.WriteStartElement(Saml2Constants.Elements.SubjectConfirmationData, Saml2Constants.Namespace); 5445if (!reader.IsStartElement(Saml2Constants.Elements.SubjectLocality, Saml2Constants.Namespace)) 5447reader.ReadStartElement(Saml2Constants.Elements.SubjectLocality, Saml2Constants.Namespace); 5458XmlUtil.ValidateXsiType(reader, Saml2Constants.Types.SubjectLocalityType, Saml2Constants.Namespace); 5510writer.WriteStartElement(Saml2Constants.Elements.SubjectLocality, Saml2Constants.Namespace);