System::Net::Security Namespace Reference

Classes

class  AuthenticatedStream
 
class  SslStream
 A stream that uses the SSL protocol to authenticate the server and optionally the client. More...
 

Typedefs

using RemoteCertificateValidationCallback = System::MulticastDelegate< bool(System::SharedPtr< Object >, System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate >, System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Chain >, SslPolicyErrors)>
 A user delegate used to verify remote SSL certificate. More...
 
using LocalCertificateSelectionCallback = System::MulticastDelegate< System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate >(System::SharedPtr< Object >, String, System::SharedPtr< System::Security::Cryptography::X509Certificates::X509CertificateCollection >, System::SharedPtr< System::Security::Cryptography::X509Certificates::X509Certificate >, System::ArrayPtr< String >)>
 A user delegate used to select local SSL certificate. More...
 

Enumerations

enum  AuthenticationLevel { AuthenticationLevel::None = 0, AuthenticationLevel::MutualAuthRequested = 1, AuthenticationLevel::MutualAuthRequired = 2 }
 WebRequest-specific authentication flags. More...
 
enum  SslPolicyErrors { SslPolicyErrors::None = 0x0, SslPolicyErrors::RemoteCertificateNotAvailable = 0x1, SslPolicyErrors::RemoteCertificateNameMismatch = 0x2, SslPolicyErrors::RemoteCertificateChainErrors = 0x4 }
 Enumerates the policy errors of SSL. More...
 
enum  EncryptionPolicy { EncryptionPolicy::RequireEncryption = 0, EncryptionPolicy::AllowNoEncryption, EncryptionPolicy::NoEncryption }
 Enumerates the encryption policies. More...
 

Typedef Documentation

◆ LocalCertificateSelectionCallback

◆ RemoteCertificateValidationCallback

Enumeration Type Documentation

◆ AuthenticationLevel

WebRequest-specific authentication flags.

Enumerator
None 

No authentication is required for the client and server.

MutualAuthRequested 

The request does not fail if the server is not authenticated.

MutualAuthRequired 

The current application will receive 'IOException' when the server is not authenticated.

◆ EncryptionPolicy

Enumerates the encryption policies.

Enumerator
RequireEncryption 

Require encryption and never allow a 'Null' cipher.

AllowNoEncryption 

Prefer using full encryption but a 'Null' cipher can be used 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.

◆ SslPolicyErrors

Enumerates the policy errors of SSL.

Enumerator
None 

No SSL policy errors.

RemoteCertificateNotAvailable 

The certificate is unavailable.

RemoteCertificateNameMismatch 

The certificate name mismatch.

RemoteCertificateChainErrors 

The certificate chain contains errors.