Public Member Functions | Static Public Attributes | Properties

GridGain.Client.Ssl.GridClientSslContext Class Reference

This class provides basic initialization of the SSL stream for client-server communication.

Inherits GridGain::Client::Ssl::IGridClientSslContext.

List of all members.

Public Member Functions

 GridClientSslContext ()
 Constructs default context, which ignores any SSL errors.
 GridClientSslContext (bool permanentResult)
 Constructs SSL context with permanent validation result.
SslStream CreateStream (TcpClient client)
 Constructs SSL stream for the client.

Static Public Attributes

static readonly
RemoteCertificateValidationCallback 
AllowAllCerts = (i1, i2, i3, i4) => true
 Allow all server certificates callback.
static readonly
RemoteCertificateValidationCallback 
DenyAllCerts = (i1, i2, i3, i4) => false
 Deny all server certificates callback.

Properties

X509Certificate2Collection ClientCertificates [get, set]
 Certificates collection to provide client SSL authentication.
SslProtocols EnabledSslProtocols [get, set]
 The value that represents the protocol used for authentication (default SslProtocols.Default).
bool CheckCertificateRevocation [get, set]
 The value that specifies whether the certificate revocation list is checked during authentication (default false).
RemoteCertificateValidationCallback ValidateCallback [get, set]
 Validate certificates chain user-defined callback.

Constructor & Destructor Documentation

GridGain.Client.Ssl.GridClientSslContext.GridClientSslContext (  ) 
GridGain.Client.Ssl.GridClientSslContext.GridClientSslContext ( bool  permanentResult  ) 
Parameters:
permanentResult Permanent validation result: allow all certificates or deny all.

Member Function Documentation

SslStream GridGain.Client.Ssl.GridClientSslContext.CreateStream ( TcpClient  client  ) 
Parameters:
client Tcp client for client-server communication.
Returns:
Configured SSL stream.

Implements GridGain.Client.Ssl.IGridClientSslContext.


Member Data Documentation

readonly RemoteCertificateValidationCallback GridGain.Client.Ssl.GridClientSslContext.AllowAllCerts = (i1, i2, i3, i4) => true [static]
readonly RemoteCertificateValidationCallback GridGain.Client.Ssl.GridClientSslContext.DenyAllCerts = (i1, i2, i3, i4) => false [static]

Property Documentation

bool GridGain.Client.Ssl.GridClientSslContext.CheckCertificateRevocation [get, set]
X509Certificate2Collection GridGain.Client.Ssl.GridClientSslContext.ClientCertificates [get, set]
SslProtocols GridGain.Client.Ssl.GridClientSslContext.EnabledSslProtocols [get, set]
RemoteCertificateValidationCallback GridGain.Client.Ssl.GridClientSslContext.ValidateCallback [get, set]