2 types derived from WSSecurityPolicy
System.ServiceModel (2)
System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
14
class WSSecurityPolicy11 :
WSSecurityPolicy
System\ServiceModel\Security\WSSecurityPolicy12.cs (1)
18
class WSSecurityPolicy12 :
WSSecurityPolicy
52 references to WSSecurityPolicy
System.ServiceModel (52)
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (2)
174
WSSecurityPolicy
sp = null;
175
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(policyContext.GetBindingAssertions(), out sp))
System\ServiceModel\Channels\SecurityBindingElement.cs (10)
2197
WSSecurityPolicy
sp =
WSSecurityPolicy
.GetSecurityPolicyDriver(binding.MessageSecurityVersion);
2222
WSSecurityPolicy
sp =
WSSecurityPolicy
.GetSecurityPolicyDriver(binding.MessageSecurityVersion);
2307
WSSecurityPolicy
sp =
WSSecurityPolicy
.GetSecurityPolicyDriver(binding.MessageSecurityVersion);
2337
WSSecurityPolicy
sp =
WSSecurityPolicy
.GetSecurityPolicyDriver(security.MessageSecurityVersion);
2400
WSSecurityPolicy
sp =
WSSecurityPolicy
.GetSecurityPolicyDriver(binding.MessageSecurityVersion);
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (14)
103
WSSecurityPolicy
securityPolicy;
104
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(assertions, out securityPolicy))
474
WSSecurityPolicy
securityPolicy;
475
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(assertions, out securityPolicy))
498
WSSecurityPolicy
securityPolicy;
499
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(policyContext.GetBindingAssertions(), out securityPolicy))
528
WSSecurityPolicy
securityPolicy;
529
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(policyContext.GetBindingAssertions(), out securityPolicy))
552
WSSecurityPolicy
securityPolicy;
553
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(policyContext.GetBindingAssertions(), out securityPolicy))
579
WSSecurityPolicy
securityPolicy;
580
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(policyContext.GetBindingAssertions(), out securityPolicy))
646
WSSecurityPolicy
securityPolicy;
647
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(policyContext.GetBindingAssertions(), out securityPolicy))
System\ServiceModel\Channels\TransportBindingElementImporter.cs (2)
184
WSSecurityPolicy
sp = null;
186
if (
WSSecurityPolicy
.TryGetSecurityPolicyDriver(policyCollection, out sp) && sp.ContainsWsspHttpsTokenAssertion(policyCollection))
System\ServiceModel\Security\SecurityPolicyVersion.cs (2)
54
: base(System.ServiceModel.Security.WSSecurityPolicy11.WsspNamespace,
WSSecurityPolicy
.WsspPrefix)
72
: base(System.ServiceModel.Security.WSSecurityPolicy12.WsspNamespace,
WSSecurityPolicy
.WsspPrefix)
System\ServiceModel\Security\WSSecurityPolicy.cs (11)
188
if (e.NamespaceURI == this.WsspNamespaceUri || e.NamespaceURI ==
WSSecurityPolicy
.MsspNamespace)
1356
WSSecurityPolicy
sp =
WSSecurityPolicy
.GetSecurityPolicyDriver(security.MessageSecurityVersion);
2638
WSSecurityPolicy
sp =
WSSecurityPolicy
.GetSecurityPolicyDriver(bootstrapSecurity.MessageSecurityVersion);
3068
public static bool TryGetSecurityPolicyDriver(ICollection<XmlElement> assertions, out
WSSecurityPolicy
securityPolicy)
3074
public static
WSSecurityPolicy
GetSecurityPolicyDriver(MessageSecurityVersion version)
3082
List<
WSSecurityPolicy
> drivers;
3086
this.drivers = new List<
WSSecurityPolicy
>();
3096
public bool TryGetSecurityPolicyDriver(ICollection<XmlElement> assertions, out
WSSecurityPolicy
securityPolicy)
3112
public
WSSecurityPolicy
GetSecurityPolicyDriver(MessageSecurityVersion version)
System\ServiceModel\Security\WSSecurityPolicy12.cs (11)
56
XmlElement result = CreateWsspAssertion(
WSSecurityPolicy
.HttpsTokenName);
64
policy.AppendChild(CreateWsspAssertion(
WSSecurityPolicy
.RequireClientCertificateName));
68
policy.AppendChild(CreateWsspAssertion(
WSSecurityPolicy
.HttpBasicAuthenticationName));
72
policy.AppendChild(CreateWsspAssertion(
WSSecurityPolicy
.HttpDigestAuthenticationName));
94
if (node is XmlElement && node.LocalName ==
WSSecurityPolicy
.PolicyName && (node.NamespaceURI ==
WSSecurityPolicy
.WspNamespace || node.NamespaceURI ==
WSSecurityPolicy
.Wsp15Namespace))
107
if (node.LocalName ==
WSSecurityPolicy
.RequireClientCertificateName)
111
else if (node.LocalName ==
WSSecurityPolicy
.HttpBasicAuthenticationName)
115
else if (node.LocalName ==
WSSecurityPolicy
.HttpDigestAuthenticationName)
600
parameters.RequireDerivedKeys = TryImportWsspAssertion(assertions,
WSSecurityPolicy
.RequireDerivedKeysName);