FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (8)
46private void ImportOperationScopeSupportingTokensPolicy(MetadataImporter importer, PolicyConversionContext policyContext, SecurityBindingElement binding)
491private void ImportEndpointScopeMessageBindingAssertions(MetadataImporter importer, PolicyConversionContext policyContext, SecurityBindingElement binding)
523private bool TryImportSymmetricSecurityBindingElement(MetadataImporter importer, PolicyConversionContext policyContext, out SecurityBindingElement sbe)
547private bool TryImportAsymmetricSecurityBindingElement(MetadataImporter importer, PolicyConversionContext policyContext, out SecurityBindingElement sbe)
572private bool TryImportTransportSecurityBindingElement(MetadataImporter importer, PolicyConversionContext policyContext, out SecurityBindingElement sbe, bool isDualSecurityModeOnly)
610private static bool HasSupportingTokens(SecurityBindingElement binding)
652SecurityBindingElement sbe = null;
668SecurityBindingElement tbe = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (35)
74internal SecurityBindingElement(SecurityBindingElement elementToBeCloned)
504static public SecurityBindingElement CreateMutualCertificateBindingElement()
510internal static bool IsMutualCertificateBinding(SecurityBindingElement sbe)
537static public SecurityBindingElement CreateMutualCertificateBindingElement(MessageSecurityVersion version)
544static public SecurityBindingElement CreateMutualCertificateBindingElement(MessageSecurityVersion version, bool allowSerializedSigningTokenOnReply)
550SecurityBindingElement result;
585internal static bool IsMutualCertificateDuplexBinding(SecurityBindingElement sbe)
612internal static bool IsMutualCertificateBinding(SecurityBindingElement sbe, bool allowSerializedSigningTokenOnReply)
671internal static bool IsAnonymousForCertificateBinding(SecurityBindingElement sbe)
751internal static bool IsUserNameForCertificateBinding(SecurityBindingElement sbe)
785internal static bool IsKerberosBinding(SecurityBindingElement sbe)
817internal static bool IsSspiNegotiationBinding(SecurityBindingElement sbe, bool requireCancellation)
850internal static bool IsSslNegotiationBinding(SecurityBindingElement sbe, bool requireClientCertificate, bool requireCancellation)
901internal static bool IsIssuedTokenForCertificateBinding(SecurityBindingElement sbe, out IssuedSecurityTokenParameters issuedTokenParameters)
944internal static bool IsIssuedTokenForSslBinding(SecurityBindingElement sbe, out IssuedSecurityTokenParameters issuedTokenParameters)
973internal static bool IsIssuedTokenForSslBinding(SecurityBindingElement sbe, bool requireCancellation, out IssuedSecurityTokenParameters issuedTokenParameters)
1030internal static bool IsUserNameForSslBinding(SecurityBindingElement sbe, bool requireCancellation)
1066internal static bool IsUserNameOverTransportBinding(SecurityBindingElement sbe)
1129internal static bool IsCertificateOverTransportBinding(SecurityBindingElement sbe)
1219internal static bool IsSspiNegotiationOverTransportBinding(SecurityBindingElement sbe, bool requireCancellation)
1272internal static bool IsIssuedTokenOverTransportBinding(SecurityBindingElement sbe, out IssuedSecurityTokenParameters issuedTokenParameters)
1308static public SecurityBindingElement CreateSecureConversationBindingElement(SecurityBindingElement bootstrapSecurity)
1314internal static bool IsSecureConversationBinding(SecurityBindingElement sbe, out SecurityBindingElement bootstrapSecurity)
1319static public SecurityBindingElement CreateSecureConversationBindingElement(SecurityBindingElement bootstrapSecurity, bool requireCancellation)
1326static public SecurityBindingElement CreateSecureConversationBindingElement(SecurityBindingElement bootstrapSecurity, bool requireCancellation, ChannelProtectionRequirements bootstrapProtectionRequirements)
1331SecurityBindingElement result;
1365internal static bool IsSecureConversationBinding(SecurityBindingElement sbe, bool requireCancellation, out SecurityBindingElement bootstrapSecurity)
1454internal static ChannelProtectionRequirements ComputeProtectionRequirements(SecurityBindingElement security, BindingParameterCollection parameterCollection, BindingElementCollection bindingElements, bool isForService)
1521SecurityBindingElement security = b as SecurityBindingElement;
FrameworkFork\System.ServiceModel\System\ServiceModel\FederatedMessageSecurityOverHttp.cs (13)
135internal SecurityBindingElement CreateSecurityBindingElement(bool isSecureTransportMode,
150SecurityBindingElement result;
179SecurityBindingElement issuedTokenSecurity;
182issuedTokenSecurity = SecurityBindingElement.CreateIssuedTokenOverTransportBindingElement(issuedParameters);
190issuedTokenSecurity = SecurityBindingElement.CreateIssuedTokenForSslBindingElement(issuedParameters, version.SecurityPolicyVersion != SecurityPolicyVersion.WSSecurityPolicy11);
194issuedTokenSecurity = SecurityBindingElement.CreateIssuedTokenForCertificateBindingElement(issuedParameters);
203result = SecurityBindingElement.CreateSecureConversationBindingElement(issuedTokenSecurity, true);
234internal static bool TryCreate(SecurityBindingElement sbe, bool isSecureTransportMode, bool isReliableSession, MessageSecurityVersion version, out FederatedMessageSecurityOverHttp messageSecurity)
252SecurityBindingElement bootstrapSecurity;
254bool establishSecurityContext = SecurityBindingElement.IsSecureConversationBinding(sbe, true, out bootstrapSecurity);
265if (!SecurityBindingElement.IsIssuedTokenOverTransportBinding(bootstrapSecurity, out issuedTokenParameters))
272if (SecurityBindingElement.IsIssuedTokenForSslBinding(bootstrapSecurity, version.SecurityPolicyVersion != SecurityPolicyVersion.WSSecurityPolicy11, out issuedTokenParameters))
274else if (SecurityBindingElement.IsIssuedTokenForCertificateBinding(bootstrapSecurity, out issuedTokenParameters))
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageSecurityOverHttp.cs (36)
75internal SecurityBindingElement CreateSecurityBindingElement(bool isSecureTransportMode, bool isReliableSession, MessageSecurityVersion version)
82SecurityBindingElement result;
83SecurityBindingElement oneShotSecurity;
94oneShotSecurity = SecurityBindingElement.CreateUserNameOverTransportBindingElement();
97oneShotSecurity = SecurityBindingElement.CreateCertificateOverTransportBindingElement();
100oneShotSecurity = SecurityBindingElement.CreateSspiNegotiationOverTransportBindingElement(true);
104oneShotSecurity = SecurityBindingElement.CreateIssuedTokenOverTransportBindingElement(null);
112result = SecurityBindingElement.CreateSecureConversationBindingElement(oneShotSecurity, true);
126oneShotSecurity = SecurityBindingElement.CreateSslNegotiationBindingElement(false, true);
129oneShotSecurity = SecurityBindingElement.CreateUserNameForSslBindingElement(true);
132oneShotSecurity = SecurityBindingElement.CreateSslNegotiationBindingElement(true, true);
135oneShotSecurity = SecurityBindingElement.CreateSspiNegotiationBindingElement(true);
138oneShotSecurity = SecurityBindingElement.CreateIssuedTokenForSslBindingElement(null, false);
151oneShotSecurity = SecurityBindingElement.CreateAnonymousForCertificateBindingElement();
154oneShotSecurity = SecurityBindingElement.CreateUserNameForCertificateBindingElement();
157oneShotSecurity = SecurityBindingElement.CreateMutualCertificateBindingElement();
160oneShotSecurity = SecurityBindingElement.CreateKerberosBindingElement();
164oneShotSecurity = SecurityBindingElement.CreateIssuedTokenForCertificateBindingElement(null);
174result = SecurityBindingElement.CreateSecureConversationBindingElement(oneShotSecurity, true);
216internal static bool TryCreate<TSecurity>(SecurityBindingElement sbe, bool isSecureTransportMode, bool isReliableSession, out TSecurity messageSecurity)
242SecurityBindingElement bootstrapSecurity;
243if (!SecurityBindingElement.IsSecureConversationBinding(sbe, true, out bootstrapSecurity))
272if (SecurityBindingElement.IsUserNameOverTransportBinding(bootstrapSecurity))
276else if (SecurityBindingElement.IsCertificateOverTransportBinding(bootstrapSecurity))
280else if (SecurityBindingElement.IsSspiNegotiationOverTransportBinding(bootstrapSecurity, true))
284else if (SecurityBindingElement.IsIssuedTokenOverTransportBinding(bootstrapSecurity, out infocardParameters))
309if (SecurityBindingElement.IsSslNegotiationBinding(bootstrapSecurity, false, true))
314else if (SecurityBindingElement.IsUserNameForSslBinding(bootstrapSecurity, true))
319else if (SecurityBindingElement.IsSslNegotiationBinding(bootstrapSecurity, true, true))
324else if (SecurityBindingElement.IsSspiNegotiationBinding(bootstrapSecurity, true))
329else if (SecurityBindingElement.IsIssuedTokenForSslBinding(bootstrapSecurity, true, out infocardParameters))
347else if (SecurityBindingElement.IsUserNameForCertificateBinding(bootstrapSecurity))
352else if (SecurityBindingElement.IsMutualCertificateBinding(bootstrapSecurity))
357else if (SecurityBindingElement.IsKerberosBinding(bootstrapSecurity))
362else if (SecurityBindingElement.IsIssuedTokenForCertificateBinding(bootstrapSecurity, out infocardParameters))
380else if (SecurityBindingElement.IsAnonymousForCertificateBinding(bootstrapSecurity))
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageSecurityOverTcp.cs (26)
66internal SecurityBindingElement CreateSecurityBindingElement(bool isSecureTransportMode, bool isReliableSession, BindingElement transportBindingElement)
68SecurityBindingElement result;
69SecurityBindingElement oneShotSecurity;
77oneShotSecurity = SecurityBindingElement.CreateUserNameOverTransportBindingElement();
80oneShotSecurity = SecurityBindingElement.CreateCertificateOverTransportBindingElement();
83oneShotSecurity = SecurityBindingElement.CreateSspiNegotiationOverTransportBindingElement(true);
86oneShotSecurity = SecurityBindingElement.CreateIssuedTokenOverTransportBindingElement(IssuedSecurityTokenParameters.CreateInfoCardParameters(new SecurityStandardsManager(), this.algorithmSuite));
92result = SecurityBindingElement.CreateSecureConversationBindingElement(oneShotSecurity);
99oneShotSecurity = SecurityBindingElement.CreateSslNegotiationBindingElement(false, true);
103oneShotSecurity = SecurityBindingElement.CreateUserNameForSslBindingElement(true);
106oneShotSecurity = SecurityBindingElement.CreateSslNegotiationBindingElement(true, true);
110oneShotSecurity = SecurityBindingElement.CreateSspiNegotiationBindingElement(true);
113oneShotSecurity = SecurityBindingElement.CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters.CreateInfoCardParameters(new SecurityStandardsManager(), this.algorithmSuite), true);
119result = SecurityBindingElement.CreateSecureConversationBindingElement(oneShotSecurity, true);
145internal static bool TryCreate(SecurityBindingElement sbe, bool isReliableSession, BindingElement transportBindingElement, out MessageSecurityOverTcp messageSecurity)
168SecurityBindingElement bootstrapSecurity;
170if (!SecurityBindingElement.IsSecureConversationBinding(sbe, true, out bootstrapSecurity))
178if (SecurityBindingElement.IsUserNameOverTransportBinding(bootstrapSecurity))
180else if (SecurityBindingElement.IsCertificateOverTransportBinding(bootstrapSecurity))
182else if (SecurityBindingElement.IsSspiNegotiationOverTransportBinding(bootstrapSecurity, true))
184else if (SecurityBindingElement.IsIssuedTokenOverTransportBinding(bootstrapSecurity, out infocardParameters))
207if (SecurityBindingElement.IsUserNameForSslBinding(bootstrapSecurity, true))
209else if (SecurityBindingElement.IsSslNegotiationBinding(bootstrapSecurity, true, true))
211else if (SecurityBindingElement.IsSspiNegotiationBinding(bootstrapSecurity, true))
213else if (SecurityBindingElement.IsIssuedTokenForSslBinding(bootstrapSecurity, true, out infocardParameters))
228else if (SecurityBindingElement.IsSslNegotiationBinding(bootstrapSecurity, false, true))
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (16)
612public virtual XmlElement CreateWsspWssAssertion(MetadataExporter exporter, SecurityBindingElement binding)
644public virtual bool TryImportWsspWssAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion)
806public abstract bool TryImportWsspTrustAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion);
822protected bool TryImportWsspTrustAssertion(string trustName, MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding, out XmlElement assertion)
1297public virtual XmlElement CreateWsspEncryptSignatureAssertion(PolicyConversionContext policyContext, SecurityBindingElement binding)
1325private bool ContainsEncryptionParts(PolicyConversionContext policyContext, SecurityBindingElement security)
1352bindingParameters.Add(ChannelProtectionRequirements.CreateFromContract(policyContext.Contract, policyContext.BindingElements.Find<SecurityBindingElement>().GetIndividualProperty<ISecurityCapabilities>(), false));
1353ChannelProtectionRequirements protectionRequirements = SecurityBindingElement.ComputeProtectionRequirements(security, bindingParameters, policyContext.BindingElements, true);
1415public virtual XmlElement CreateWsspProtectTokensAssertion(SecurityBindingElement sbe)
1458public virtual bool TryImportWsspIncludeTimestampAssertion(ICollection<XmlElement> assertions, SecurityBindingElement binding)
1490public virtual bool TryImportWsspLayoutAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding)
1581public virtual bool TryImportWsspAlgorithmSuiteAssertion(MetadataImporter importer, ICollection<XmlElement> assertions, SecurityBindingElement binding)
2633public virtual XmlElement CreateWsspBootstrapPolicyAssertion(MetadataExporter exporter, SecurityBindingElement bootstrapSecurity)
2758parameters.BootstrapSecurityBindingElement = bindingElements.Find<SecurityBindingElement>();
3050SecurityBindingElement sbe = endpoint.Binding.CreateBindingElements().Find<SecurityBindingElement>();