12 references to RequireEncryption
System.Net.Requests (1)
System\Net\ServicePoint\ServicePointManager.cs (1)
101public static EncryptionPolicy EncryptionPolicy { get; } = EncryptionPolicy.RequireEncryption;
System.Net.Security (11)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
213if (sslAuthenticationOptions.EncryptionPolicy != EncryptionPolicy.RequireEncryption) 341bool cacheSslContext = sslAuthenticationOptions.AllowTlsResume && !SslStream.DisableTlsResume && sslAuthenticationOptions.EncryptionPolicy == EncryptionPolicy.RequireEncryption && sslAuthenticationOptions.CipherSuitesPolicy == null;
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
175case EncryptionPolicy.RequireEncryption:
System\Net\Security\SslClientAuthenticationOptions.cs (2)
13private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.RequireEncryption; 69if (value != EncryptionPolicy.RequireEncryption && value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
System\Net\Security\SslServerAuthenticationOptions.cs (2)
14private EncryptionPolicy _encryptionPolicy = EncryptionPolicy.RequireEncryption; 71if (value != EncryptionPolicy.RequireEncryption && value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
System\Net\Security\SslStream.cs (4)
189: this(innerStream, leaveInnerStreamOpen, null, null, EncryptionPolicy.RequireEncryption) 194: this(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, null, EncryptionPolicy.RequireEncryption) 200: this(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, userCertificateSelectionCallback, EncryptionPolicy.RequireEncryption) 209if (encryptionPolicy != EncryptionPolicy.RequireEncryption && encryptionPolicy != EncryptionPolicy.AllowNoEncryption && encryptionPolicy != EncryptionPolicy.NoEncryption)