343 references to ProtectionLevel
System (33)
net\System\Net\SecureProtocols\_NegoState.cs (11)
59private ProtectionLevel _ExpectedProtectionLevel; 93ProtectionLevel protectionLevel, 128ProtectionLevel protectionLevel, 173if (protectionLevel == ProtectionLevel.None && !isServer) 178else if (protectionLevel == ProtectionLevel.EncryptAndSign) 182else if (protectionLevel == ProtectionLevel.Sign) 200if (protectionLevel != ProtectionLevel.None) {flags |= ContextFlags.MutualAuth;} 537ProtectionLevel result = _Context.IsConfidentialityFlag? ProtectionLevel.EncryptAndSign: _Context.IsIntegrityFlag? ProtectionLevel.Sign: ProtectionLevel.None;
net\System\Net\SecureProtocols\NegotiateStream.cs (22)
69AuthenticateAsClient((NetworkCredential)CredentialCache.DefaultCredentials, null, string.Empty, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 73AuthenticateAsClient(credential, null, targetName, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 77AuthenticateAsClient(credential, binding, targetName, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 83ProtectionLevel requiredProtectionLevel, //this will be the ultimate result or exception 92ProtectionLevel requiredProtectionLevel, 109ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, 117ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, 125ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, 132ProtectionLevel requiredProtectionLevel, //this will be ultimatelly the result or exception 146ProtectionLevel requiredProtectionLevel, 181AuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 186AuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification); 190ProtectionLevel requiredProtectionLevel, //throw if the result is below than this 198ProtectionLevel requiredProtectionLevel, 215return BeginAuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, null, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState); 221return BeginAuthenticateAsServer((NetworkCredential)CredentialCache.DefaultCredentials, policy, ProtectionLevel.EncryptAndSign, TokenImpersonationLevel.Identification, asyncCallback, asyncState); 226ProtectionLevel requiredProtectionLevel, //throw if the result is below than this 237ProtectionLevel requiredProtectionLevel, //throw if the result is below than this 283ProtectionLevel requiredProtectionLevel, 298string targetName, ProtectionLevel requiredProtectionLevel, 317public virtual Task AuthenticateAsServerAsync(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel) 325ProtectionLevel requiredProtectionLevel,
System.Runtime.Remoting (10)
channels\tcp\tcpclientchannel.cs (5)
348private ProtectionLevel _protectionLevel = ProtectionLevel.EncryptAndSign; 624case ProtectionLevelKey: _protectionLevel = (ProtectionLevel)(value is ProtectionLevel ? value : 625Enum.Parse(typeof(ProtectionLevel),
channels\tcp\tcpserverchannel.cs (5)
51private ProtectionLevel _protectionLevel = ProtectionLevel.EncryptAndSign; // default is encrypt and sign is secure is true 109case "protectionLevel": _protectionLevel = (ProtectionLevel)(entry.Value is ProtectionLevel ? entry.Value : 110Enum.Parse(typeof(ProtectionLevel),
System.ServiceModel (283)
System\ServiceModel\BasicHttpContextBinding.cs (1)
87result.Insert(0, new ContextBindingElement(ProtectionLevel.None, ContextExchangeMechanism.HttpCookie, null, this.ContextManagementEnabled));
System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (6)
139ProtectionLevel requestProtectionLevel = ProtectionLevel.EncryptAndSign; 140ProtectionLevel responseProtectionLevel = ProtectionLevel.EncryptAndSign; 145requestProtectionLevel = ProtectionLevel.Sign; 146responseProtectionLevel = ProtectionLevel.None;
System\ServiceModel\Channels\CallbackContextMessageHeader.cs (3)
57internal static ChannelProtectionRequirements GetChannelProtectionRequirements(ProtectionLevel protectionLevel) 61if (protectionLevel == ProtectionLevel.EncryptAndSign) 77else if (protectionLevel == ProtectionLevel.Sign)
System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (1)
147System.Net.Security.ProtectionLevel.None));
System\ServiceModel\Channels\ContextBindingElement.cs (9)
20internal const ProtectionLevel DefaultProtectionLevel = ProtectionLevel.Sign; 24ProtectionLevel protectionLevel; 32public ContextBindingElement(ProtectionLevel protectionLevel) 38public ContextBindingElement(ProtectionLevel protectionLevel, ContextExchangeMechanism contextExchangeMechanism) 45public ContextBindingElement(ProtectionLevel protectionLevel, ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress) 51public ContextBindingElement(ProtectionLevel protectionLevel, ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress, bool contextManagementEnabled) 106public ProtectionLevel ProtectionLevel 209if (typeof(T) == typeof(ChannelProtectionRequirements) && this.ProtectionLevel != ProtectionLevel.None)
System\ServiceModel\Channels\ContextBindingElementPolicy.cs (5)
56case ProtectionLevel.EncryptAndSign: 59case ProtectionLevel.Sign: 136bindingElement = new ContextBindingElement(ProtectionLevel.EncryptAndSign); 140bindingElement = new ContextBindingElement(ProtectionLevel.Sign); 144bindingElement = new ContextBindingElement(ProtectionLevel.None);
System\ServiceModel\Channels\ContextMessageHeader.cs (3)
69internal static ChannelProtectionRequirements GetChannelProtectionRequirements(ProtectionLevel protectionLevel) 73if (protectionLevel == ProtectionLevel.EncryptAndSign) 89else if (protectionLevel == ProtectionLevel.Sign)
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (2)
154ProtectionLevel.EncryptAndSign, 155ProtectionLevel.EncryptAndSign);
System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
501ProtectionLevel.None, 502ProtectionLevel.None);
System\ServiceModel\Channels\InternalDuplexBindingElement.cs (1)
125System.Net.Security.ProtectionLevel.None));
System\ServiceModel\Channels\ISecurityCapabilities.cs (2)
10ProtectionLevel SupportedRequestProtectionLevel { get; } 11ProtectionLevel SupportedResponseProtectionLevel { get; }
System\ServiceModel\Channels\Msmq.cs (2)
125internal static void EnterXPSendLock(out bool lockHeld, ProtectionLevel protectionLevel) 128if (null != xpSendLock && (ProtectionLevel.None != protectionLevel))
System\ServiceModel\Channels\MsmqBindingElementBase.cs (3)
343if (this.MsmqTransportSecurity.MsmqProtectionLevel != ProtectionLevel.None) 388this.MsmqTransportSecurity.MsmqProtectionLevel = ProtectionLevel.Sign; 396this.MsmqTransportSecurity.MsmqProtectionLevel = ProtectionLevel.None;
System\ServiceModel\Channels\MsmqOutputMessage.cs (2)
96if (ProtectionLevel.EncryptAndSign == factory.MsmqTransportSecurity.MsmqProtectionLevel) 117if (ProtectionLevel.EncryptAndSign == factory.MsmqTransportSecurity.MsmqProtectionLevel)
System\ServiceModel\Channels\MsmqVerifier.cs (4)
147if (security.MsmqAuthenticationMode == MsmqAuthenticationMode.None && security.MsmqProtectionLevel != ProtectionLevel.None) 151if (security.MsmqAuthenticationMode == MsmqAuthenticationMode.Certificate && security.MsmqProtectionLevel == ProtectionLevel.None) 157if (security.MsmqProtectionLevel == ProtectionLevel.None) 162if (security.MsmqProtectionLevel == ProtectionLevel.EncryptAndSign && useActiveDirectory.HasValue && !useActiveDirectory.Value)
System\ServiceModel\Channels\SecurityBindingElement.cs (7)
823internal ChannelProtectionRequirements GetProtectionRequirements(AddressingVersion addressing, ProtectionLevel defaultProtectionLevel) 829ProtectionLevel supportedRequestProtectionLevel = this.GetIndividualProperty<ISecurityCapabilities>().SupportedRequestProtectionLevel; 830ProtectionLevel supportedResponseProtectionLevel = this.GetIndividualProperty<ISecurityCapabilities>().SupportedResponseProtectionLevel; 839if (defaultProtectionLevel != ProtectionLevel.None) 842if (defaultProtectionLevel == ProtectionLevel.EncryptAndSign) 910ProtectionLevel requestProtectionLevel = ProtectionLevelHelper.Max(thisSecurityCapability.SupportedRequestProtectionLevel, lowerSecurityCapability.SupportedRequestProtectionLevel); 911ProtectionLevel responseProtectionLevel = ProtectionLevelHelper.Max(thisSecurityCapability.SupportedResponseProtectionLevel, lowerSecurityCapability.SupportedResponseProtectionLevel);
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (17)
129void ValidateExistingOrSetNewProtectionLevel(MessagePartDescription part, MessageDescription message, OperationDescription operation, ContractDescription contract, ProtectionLevel newProtectionLevel) 131ProtectionLevel existingProtectionLevel; 202ProtectionLevel uniformProtectionLevel; 204public ContractProtectionLevel(bool hasProtectionRequirements, bool hasUniformProtectionLevel, ProtectionLevel uniformProtectionLevel) 213public ProtectionLevel UniformProtectionLevel { get { return this.uniformProtectionLevel; } } 224ProtectionLevel contractProtectionLevel = ProtectionLevel.None; 264ProtectionLevel protectionLevel = ProtectionLevel.None; 275ProtectionLevel newProtectionLevel = GetProtectionLevel(messageSignedParts.IsBodyIncluded, messageEncryptedParts.IsBodyIncluded, message.Action); 369ProtectionLevel newProtectionLevel = GetProtectionLevel(messageSignedParts.IsBodyIncluded, messageEncryptedParts.IsBodyIncluded, fault.Action); 407if (hasContractProtectionLevel && isContractProtectionLevelUniform && contractProtectionLevel == ProtectionLevel.EncryptAndSign) 445static ProtectionLevel GetProtectionLevel(bool signed, bool encrypted, string action) 447ProtectionLevel result; 453result = ProtectionLevel.EncryptAndSign; 462result = ProtectionLevel.Sign; 466result = ProtectionLevel.None;
System\ServiceModel\Channels\SecurityCapabilities.cs (8)
14internal ProtectionLevel requestProtectionLevel; 15internal ProtectionLevel responseProtectionLevel; 18ProtectionLevel requestProtectionLevel, ProtectionLevel responseProtectionLevel) 27public ProtectionLevel SupportedRequestProtectionLevel { get { return requestProtectionLevel; } } 28public ProtectionLevel SupportedResponseProtectionLevel { get { return responseProtectionLevel; } } 35get { return new SecurityCapabilities(false, false, false, ProtectionLevel.None, ProtectionLevel.None); }
System\ServiceModel\Channels\SslStreamSecurityBindingElement.cs (2)
147ProtectionLevel.EncryptAndSign, ProtectionLevel.EncryptAndSign);
System\ServiceModel\Channels\SymmetricSecurityBindingElement.cs (3)
108ProtectionLevel.EncryptAndSign, ProtectionLevel.EncryptAndSign); 391ChannelProtectionRequirements myRequirements = base.GetProtectionRequirements(addressing, ProtectionLevel.EncryptAndSign);
System\ServiceModel\Channels\TransportDefaults.cs (4)
168internal const ProtectionLevel MsmqProtectionLevel = ProtectionLevel.Sign; 257internal const ProtectionLevel ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
System\ServiceModel\Channels\TransportSecurityBindingElement.cs (3)
37ProtectionLevel.None, ProtectionLevel.None); 282ChannelProtectionRequirements myRequirements = base.GetProtectionRequirements(addressing, ProtectionLevel.EncryptAndSign);
System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (4)
20ProtectionLevel protectionLevel; 35public ProtectionLevel ProtectionLevel 156windowsBindingElement.ProtectionLevel = (ProtectionLevel)Enum.Parse(typeof(ProtectionLevel), protectionLevelString);
System\ServiceModel\Channels\WindowsStreamSecurityUpgradeProvider.cs (2)
27ProtectionLevel protectionLevel; 104public ProtectionLevel ProtectionLevel
System\ServiceModel\Configuration\ContextBindingElementExtensionElement.cs (2)
55public ProtectionLevel ProtectionLevel 57get { return (ProtectionLevel) base[ProtectionLevelName]; }
System\ServiceModel\Configuration\MsmqTransportSecurityElement.cs (2)
37public ProtectionLevel MsmqProtectionLevel 39get { return (ProtectionLevel)base[ConfigurationStrings.MsmqProtectionLevel]; }
System\ServiceModel\Configuration\NamedPipeTransportSecurityElement.cs (2)
20public ProtectionLevel ProtectionLevel 22get { return (ProtectionLevel)base[ConfigurationStrings.ProtectionLevel]; }
System\ServiceModel\Configuration\NetTcpContextBindingElement.cs (2)
50public ProtectionLevel ContextProtectionLevel 52get { return (ProtectionLevel) base[ContextProtectionLevelName]; }
System\ServiceModel\Configuration\Properties.cs (15)
144properties.Add(new ConfigurationProperty("protectionLevel", typeof(System.Net.Security.ProtectionLevel), System.Net.Security.ProtectionLevel.Sign, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.ProtectionLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 171properties.Add(new ConfigurationProperty("contextProtectionLevel", typeof(System.Net.Security.ProtectionLevel), System.Net.Security.ProtectionLevel.Sign, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.ProtectionLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 197properties.Add(new ConfigurationProperty("contextProtectionLevel", typeof(System.Net.Security.ProtectionLevel), System.Net.Security.ProtectionLevel.Sign, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.ProtectionLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 1979properties.Add(new ConfigurationProperty("msmqProtectionLevel", typeof(System.Net.Security.ProtectionLevel), System.Net.Security.ProtectionLevel.Sign, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.ProtectionLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 2108properties.Add(new ConfigurationProperty("protectionLevel", typeof(System.Net.Security.ProtectionLevel), System.Net.Security.ProtectionLevel.EncryptAndSign, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.ProtectionLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 3528properties.Add(new ConfigurationProperty("protectionLevel", typeof(System.Net.Security.ProtectionLevel), System.Net.Security.ProtectionLevel.EncryptAndSign, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Security.ProtectionLevelHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 3735properties.Add(new ConfigurationProperty("protectionLevel", typeof(System.Net.Security.ProtectionLevel), System.Net.Security.ProtectionLevel.EncryptAndSign, null, new System.ServiceModel.Configuration.StandardRuntimeEnumValidator(typeof(System.Net.Security.ProtectionLevel)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\TcpTransportSecurityElement.cs (2)
30public ProtectionLevel ProtectionLevel 32get { return (ProtectionLevel)base[ConfigurationStrings.ProtectionLevel]; }
System\ServiceModel\Configuration\WindowsStreamSecurityElement.cs (3)
21[StandardRuntimeEnumValidator(typeof(ProtectionLevel))] 22public ProtectionLevel ProtectionLevel 24get { return (ProtectionLevel)base[ConfigurationStrings.ProtectionLevel]; }
System\ServiceModel\Configuration\WSHttpContextBindingElement.cs (2)
50public ProtectionLevel ContextProtectionLevel 52get { return (ProtectionLevel) base[ContextProtectionLevelName]; }
System\ServiceModel\Description\ContractDescription.cs (2)
26ProtectionLevel protectionLevel; 104public ProtectionLevel ProtectionLevel
System\ServiceModel\Description\FaultDescription.cs (3)
23ProtectionLevel protectionLevel; 72public ProtectionLevel ProtectionLevel 96this.protectionLevel = ProtectionLevel.None;
System\ServiceModel\Description\MessageDescription.cs (3)
26ProtectionLevel protectionLevel; 101public ProtectionLevel ProtectionLevel 183this.protectionLevel = ProtectionLevel.None;
System\ServiceModel\Description\MessagePartDescription.cs (3)
22ProtectionLevel protectionLevel; 114public ProtectionLevel ProtectionLevel 157this.protectionLevel = ProtectionLevel.None;
System\ServiceModel\Description\OperationDescription.cs (3)
31ProtectionLevel protectionLevel; 117public ProtectionLevel ProtectionLevel 276this.protectionLevel = ProtectionLevel.None;
System\ServiceModel\Description\OperationGenerator.cs (3)
605System.Net.Security.ProtectionLevel protectionLevel = System.Net.Security.ProtectionLevel.None; 777new CodeTypeReferenceExpression(typeof(ProtectionLevel)), message.ProtectionLevel.ToString())));
System\ServiceModel\Description\ServiceContractGenerator.cs (3)
416new CodeTypeReferenceExpression(typeof(ProtectionLevel)), context.Contract.ProtectionLevel.ToString()))); 473new CodeTypeReferenceExpression(typeof(ProtectionLevel)), operationDescription.ProtectionLevel.ToString()))); 669new CodeTypeReferenceExpression(typeof(ProtectionLevel)), fault.ProtectionLevel.ToString())));
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (42)
409ValidateContract(binding, contract, ProtectionLevel.None, ProtectionLevel.None); 414ValidateContract(binding, contract, ProtectionLevel.None, ProtectionLevel.None); 417static void ValidateContract(Binding binding, ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel) 422ProtectionLevel contractScopeDefaultRequestProtectionLevel; 423ProtectionLevel contractScopeDefaultResponseProtectionLevel; 437ProtectionLevel operationScopeDefaultRequestProtectionLevel; 438ProtectionLevel operationScopeDefaultResponseProtectionLevel; 451ProtectionLevel messageScopeDefaultProtectionLevel; 467ProtectionLevel headerScopeDefaultProtectionLevel; 479if (header.IsUnknownHeaderCollection && headerScopeDefaultProtectionLevel != ProtectionLevel.None) 496ValidateContract(binding, contract, ProtectionLevel.None, ProtectionLevel.None); 501ValidateContract(binding, contract, ProtectionLevel.None, ProtectionLevel.None); 504static void ValidateContract(Binding binding, ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel) 506ProtectionLevel requestProtectionLevel; 507ProtectionLevel responseProtectionLevel; 512static internal void GetRequiredProtectionLevels(ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel, out ProtectionLevel request, out ProtectionLevel response) 518request = ProtectionLevel.None; 522request = ProtectionLevel.Sign; 526request = ProtectionLevel.EncryptAndSign; 531response = ProtectionLevel.None; 535response = ProtectionLevel.Sign; 539response = ProtectionLevel.EncryptAndSign; 543static void ValidateBindingProtectionCapability(Binding binding, ContractDescription contract, ProtectionLevel request, ProtectionLevel response) 545bool requestValidated = request == ProtectionLevel.None; 546bool responseValidated = response == ProtectionLevel.None; 658&& bootstrapSecurityCapabilities.SupportedRequestProtectionLevel == ProtectionLevel.EncryptAndSign 659&& bootstrapSecurityCapabilities.SupportedResponseProtectionLevel == ProtectionLevel.EncryptAndSign) 704&& transportCapabilities.SupportedRequestProtectionLevel == ProtectionLevel.EncryptAndSign 705&& transportCapabilities.SupportedResponseProtectionLevel == ProtectionLevel.EncryptAndSign) 947ProtectionLevel requestProtectionLevel; 948ProtectionLevel responseProtectionLevel; 952if (responseProtectionLevel == ProtectionLevel.EncryptAndSign)
System\ServiceModel\FaultContractAttribute.cs (3)
19ProtectionLevel protectionLevel = ProtectionLevel.None; 72public ProtectionLevel ProtectionLevel
System\ServiceModel\MessageContractAttribute.cs (3)
19ProtectionLevel protectionLevel = ProtectionLevel.None; 23public ProtectionLevel ProtectionLevel
System\ServiceModel\MessageContractMemberAttribute.cs (3)
18ProtectionLevel protectionLevel = ProtectionLevel.None; 71public ProtectionLevel ProtectionLevel
System\ServiceModel\MsmqTransportSecurity.cs (4)
18ProtectionLevel msmqProtectionLevel; 42return this.msmqAuthenticationMode != MsmqAuthenticationMode.None && this.msmqProtectionLevel != ProtectionLevel.None; 83public ProtectionLevel MsmqProtectionLevel 97this.msmqProtectionLevel = ProtectionLevel.None;
System\ServiceModel\NamedPipeTransportSecurity.cs (4)
15internal const ProtectionLevel DefaultProtectionLevel = ProtectionLevel.EncryptAndSign; 16ProtectionLevel protectionLevel; 24public ProtectionLevel ProtectionLevel
System\ServiceModel\NetTcpContextBinding.cs (2)
19ProtectionLevel contextProtectionLevel = ContextBindingElement.DefaultProtectionLevel; 76public ProtectionLevel ContextProtectionLevel
System\ServiceModel\OperationContractAttribute.cs (3)
22ProtectionLevel protectionLevel = ProtectionLevel.None; 60public ProtectionLevel ProtectionLevel
System\ServiceModel\PeerHopCountAttribute.cs (2)
23base.ProtectionLevel = ProtectionLevel.None; 51public new ProtectionLevel ProtectionLevel
System\ServiceModel\PeerSecuritySettings.cs (4)
65internal System.Net.Security.ProtectionLevel SupportedProtectionLevel 69System.Net.Security.ProtectionLevel level = System.Net.Security.ProtectionLevel.None; 72level = System.Net.Security.ProtectionLevel.Sign;
System\ServiceModel\Security\ChannelProtectionRequirements.cs (26)
49internal ChannelProtectionRequirements(ChannelProtectionRequirements other, ProtectionLevel newBodyProtectionLevel) 54this.incomingSignatureParts = new ScopedMessagePartSpecification(other.incomingSignatureParts, newBodyProtectionLevel != ProtectionLevel.None); 55this.incomingEncryptionParts = new ScopedMessagePartSpecification(other.incomingEncryptionParts, newBodyProtectionLevel == ProtectionLevel.EncryptAndSign); 56this.outgoingSignatureParts = new ScopedMessagePartSpecification(other.outgoingSignatureParts, newBodyProtectionLevel != ProtectionLevel.None); 57this.outgoingEncryptionParts = new ScopedMessagePartSpecification(other.outgoingEncryptionParts, newBodyProtectionLevel == ProtectionLevel.EncryptAndSign); 206internal static ChannelProtectionRequirements CreateFromContract(ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel, bool isForClient) 213ProtectionLevel contractScopeDefaultRequestProtectionLevel; 214ProtectionLevel contractScopeDefaultResponseProtectionLevel; 228ProtectionLevel operationScopeDefaultRequestProtectionLevel; 229ProtectionLevel operationScopeDefaultResponseProtectionLevel; 242ProtectionLevel messageScopeDefaultProtectionLevel; 266ProtectionLevel bodyProtectionLevel; 271bodyProtectionLevel = ProtectionLevel.None; 293ProtectionLevel partProtectionLevel = body.HasProtectionLevel ? body.ProtectionLevel : messageScopeDefaultProtectionLevel; 295if (bodyProtectionLevel == ProtectionLevel.EncryptAndSign) 299if (bodyProtectionLevel != ProtectionLevel.None) 302if (bodyProtectionLevel == ProtectionLevel.EncryptAndSign) 335MessagePartSpecification encryptedParts, ProtectionLevel defaultProtectionLevel) 337ProtectionLevel p = header.HasProtectionLevel ? header.ProtectionLevel : defaultProtectionLevel; 338if (p != ProtectionLevel.None) 342if (p == ProtectionLevel.EncryptAndSign) 347static void AddFaultProtectionRequirements(FaultDescriptionCollection faults, ChannelProtectionRequirements requirements, ProtectionLevel defaultProtectionLevel, bool addToIncoming) 358ProtectionLevel p = fault.HasProtectionLevel ? fault.ProtectionLevel : defaultProtectionLevel; 359if (p != ProtectionLevel.None) 362if (p == ProtectionLevel.EncryptAndSign)
System\ServiceModel\Security\SecurityUtils.cs (26)
54internal static bool IsDefined(ProtectionLevel value) 56return (value == ProtectionLevel.None 57|| value == ProtectionLevel.Sign 58|| value == ProtectionLevel.EncryptAndSign); 61internal static void Validate(ProtectionLevel value) 66typeof(ProtectionLevel))); 70internal static bool IsStronger(ProtectionLevel v1, ProtectionLevel v2) 72return ((v1 == ProtectionLevel.EncryptAndSign && v2 != ProtectionLevel.EncryptAndSign) 73|| (v1 == ProtectionLevel.Sign && v2 == ProtectionLevel.None)); 76internal static bool IsStrongerOrEqual(ProtectionLevel v1, ProtectionLevel v2) 78return (v1 == ProtectionLevel.EncryptAndSign 79|| (v1 == ProtectionLevel.Sign && v2 != ProtectionLevel.EncryptAndSign)); 82internal static ProtectionLevel Max(ProtectionLevel v1, ProtectionLevel v2) 87internal static int GetOrdinal(Nullable<ProtectionLevel> p) 91switch ((ProtectionLevel)p) 95typeof(ProtectionLevel))); 96case ProtectionLevel.None: 98case ProtectionLevel.Sign: 100case ProtectionLevel.EncryptAndSign:
System\ServiceModel\Security\WSTrust.cs (2)
1262part.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign; 1267message.Body.ReturnValue.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
System\ServiceModel\Security\WSTrustDec2005.cs (1)
183[FaultContract(typeof(string), Action = "*", ProtectionLevel = System.Net.Security.ProtectionLevel.Sign)]
System\ServiceModel\Security\WSTrustFeb2005.cs (1)
273[FaultContract(typeof(string), Action = "*", ProtectionLevel = System.Net.Security.ProtectionLevel.Sign)]
System\ServiceModel\ServiceContractAttribute.cs (3)
23ProtectionLevel protectionLevel = ProtectionLevel.None; 73public ProtectionLevel ProtectionLevel
System\ServiceModel\TcpTransportSecurity.cs (6)
18internal const ProtectionLevel DefaultProtectionLevel = ProtectionLevel.EncryptAndSign; 21ProtectionLevel protectionLevel; 48public ProtectionLevel ProtectionLevel 97if (this.protectionLevel != ProtectionLevel.EncryptAndSign) 116transportSecurity.ProtectionLevel = ProtectionLevel.EncryptAndSign;
System\ServiceModel\WSHttpContextBinding.cs (2)
18ProtectionLevel contextProtectionLevel = ContextBindingElement.DefaultProtectionLevel; 76public ProtectionLevel ContextProtectionLevel
System.ServiceModel.Activities (9)
System\ServiceModel\Activities\ContractInferenceHelper.cs (3)
103public static ContractDescription CreateOutputChannelContractDescription(XName serviceContractName, ProtectionLevel? protectionLevel) 129public static ContractDescription CreateRequestChannelContractDescription(XName serviceContractName, ProtectionLevel? protectionLevel) 162ProtectionLevel? protectionLevel)
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (1)
86ProtectionLevel = ProtectionLevel.Sign
System\ServiceModel\Activities\Receive.cs (1)
170public ProtectionLevel? ProtectionLevel
System\ServiceModel\Activities\Send.cs (1)
182public ProtectionLevel? ProtectionLevel
System\ServiceModel\Activities\SendSettings.cs (1)
22public ProtectionLevel? ProtectionLevel { get; set; }
System\ServiceModel\Activities\WorkflowService.cs (2)
1147if ((!targetOperation.HasProtectionLevel && receiveActivity.ProtectionLevel.HasValue && receiveActivity.ProtectionLevel != Net.Security.ProtectionLevel.None) 1149|| (!receiveActivity.ProtectionLevel.HasValue && targetOperation.ProtectionLevel != Net.Security.ProtectionLevel.None))
System.WorkflowServices (8)
System\Workflow\Activities\ContractMethodInfo.cs (1)
82operationContract.ProtectionLevel = (ProtectionLevel) operationInfo.ProtectionLevel;
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (4)
44this.protectionLevelComboBox.Items.Add(ProtectionLevel.None); 45this.protectionLevelComboBox.Items.Add(ProtectionLevel.Sign); 46this.protectionLevelComboBox.Items.Add(ProtectionLevel.EncryptAndSign); 547item.Operation.ProtectionLevel = (ProtectionLevel) this.protectionLevelComboBox.SelectedItem;
System\Workflow\Activities\OperationInfo.cs (3)
46typeof(ProtectionLevel?), typeof(OperationInfo), 99public ProtectionLevel? ProtectionLevel 103return (ProtectionLevel?) this.GetValue(OperationInfo.ProtectionLevelProperty);