This topic has not yet been rated - Rate this topic

EncryptionPolicy Enumeration

The EncryptionPolicy to use.

Namespace:  System.Net.Security
Assembly:  System (in System.dll)
public enum EncryptionPolicy
Member name Description
RequireEncryption Require encryption and never allow a NULL cipher.
AllowNoEncryption Prefer that full encryption be used, but allow a NULL cipher (no encryption) if the server agrees.
NoEncryption Allow no encryption and request that a NULL cipher be used if the other endpoint can handle a NULL cipher.

The EncryptionPolicy can be set to require, allow, or prevent encryption.

The EncryptionPolicy will be applied to an SSL/TLS session.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Is used by…

Is used for instance by:

  1. SslStream Constructor (Stream, Boolean, RemoteCertificateValidationCallback, LocalCertificateSelectionCallback, EncryptionPolicy) http://msdn.microsoft.com/en-us/library/dd990420.aspx
  2. ServicePointManager.EncryptionPolicy Property http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.encryptionpolicy.aspx
  3. For #2  it is set in a config file <servicePointManager> Element (Network Settings), http://msdn.microsoft.com/en-us/library/zsk61s76.aspx