Class SSLOptions
Defines the SSL/TLS options to connect to a ssl enabled Cassandra host
Inheritance
Inherited Members
Namespace: Dse
Assembly: Dse.dll
Syntax
public class SSLOptions
Constructors
SSLOptions()
Creates SSLOptions with default values.
Declaration
public SSLOptions()
SSLOptions(SslProtocols, Boolean, RemoteCertificateValidationCallback)
Creates SSL options used for SSL connections with Casandra hosts.
Declaration
public SSLOptions(SslProtocols sslProtocol, bool checkCertificateRevocation, RemoteCertificateValidationCallback remoteCertValidationCallback)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Authentication.SslProtocols | sslProtocol | type of SSL protocol, default set to Tls. |
System.Boolean | checkCertificateRevocation | specifies whether the certificate revocation list is checked during connection authentication. |
System.Net.Security.RemoteCertificateValidationCallback | remoteCertValidationCallback | verifies Cassandra host SSL certificate used for authentication.
|
Properties
CertificateCollection
Gets the collection that contains the client certificates
Declaration
public X509CertificateCollection CertificateCollection { get; }
Property Value
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509CertificateCollection |
CheckCertificateRevocation
Determines whether the certificate revocation list is checked during connection authentication.
Declaration
public bool CheckCertificateRevocation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HostNameResolver
Gets the method to be use to determine the host name from the IP address
Declaration
public Func<IPAddress, string> HostNameResolver { get; }
Property Value
Type | Description |
---|---|
System.Func<System.Net.IPAddress, System.String> |
RemoteCertValidationCallback
Verifies Cassandra host SSL certificate used for authentication.
Declaration
public RemoteCertificateValidationCallback RemoteCertValidationCallback { get; }
Property Value
Type | Description |
---|---|
System.Net.Security.RemoteCertificateValidationCallback |
SslProtocol
Ssl Protocol used for communication with Cassandra hosts.
Declaration
public SslProtocols SslProtocol { get; }
Property Value
Type | Description |
---|---|
System.Security.Authentication.SslProtocols |
Methods
SetCertificateCollection(X509CertificateCollection)
Sets the collection that contains the client certificates
Declaration
public SSLOptions SetCertificateCollection(X509CertificateCollection certificates)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509CertificateCollection | certificates |
Returns
Type | Description |
---|---|
SSLOptions |
SetCertificateRevocationCheck(Boolean)
Determines whether the certificate revocation list is checked during connection authentication.
Declaration
public SSLOptions SetCertificateRevocationCheck(bool flag)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | flag |
Returns
Type | Description |
---|---|
SSLOptions |
SetHostNameResolver(Func<IPAddress, String>)
Sets the method to be use to determine the host name from the host IP address
Declaration
public SSLOptions SetHostNameResolver(Func<IPAddress, string> resolver)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Net.IPAddress, System.String> | resolver |
Returns
Type | Description |
---|---|
SSLOptions |
SetRemoteCertValidationCallback(RemoteCertificateValidationCallback)
Determines whether the certificate revocation list is checked during connection authentication.
Declaration
public SSLOptions SetRemoteCertValidationCallback(RemoteCertificateValidationCallback callback)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Security.RemoteCertificateValidationCallback | callback |
Returns
Type | Description |
---|---|
SSLOptions |