.NET API Documentation

System.Net.Security Namespace

Provides classes that support secure network communications. This includes classes for creating SSL/TLS (Secure Sockets Layer/Transport Layer Security) and NTLM (NT LAN Manager) security contexts.

Classes

SslStream

public class SslStream : System.IO.Stream

Implements a stream that performs security and authentication operations using the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol.

Learn more »

NetworkStream

public class NetworkStream : System.IO.Stream

Provides the underlying stream of bytes for the network. This class cannot be inherited.

Learn more »

SslClientAuthenticationOptions

public sealed class SslClientAuthenticationOptions

Specifies client authentication options for an SSL/TLS connection.

Learn more »

EncryptionPolicy

public enum EncryptionPolicy

Specifies the encryption policy to be used when establishing an SSL/TLS connection.

Learn more »

CertificateValidationCallback

public delegate bool CertificateValidationCallback(
    object sender,
    System.Security.Cryptography.X509Certificates.X509Certificate certificate,
    System.Security.Cryptography.X509Certificates.X509Chain chain,
    System.Net.Security.SslPolicyErrors sslPolicyErrors
)

Represents the method that handles validation of the server certificate used in an SSL/TLS connection.

Learn more »

Enums

EncryptionPolicy

public enum EncryptionPolicy

Specifies the encryption policy to be used when establishing an SSL/TLS connection.

Learn more »

Delegates

CertificateValidationCallback

public delegate bool CertificateValidationCallback(
    object sender,
    System.Security.Cryptography.X509Certificates.X509Certificate certificate,
    System.Security.Cryptography.X509Certificates.X509Chain chain,
    System.Net.Security.SslPolicyErrors sslPolicyErrors
)

Represents the method that handles validation of the server certificate used in an SSL/TLS connection.

Learn more »