Class SSLOptions
Defines the SSL/TLS options to connect to a ssl enabled Cassandra host
Inheritance
Inherited Members
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class SSLOptions
Constructors
SSLOptions()
Creates SSLOptions with default values.
Declaration
public SSLOptions()
SSLOptions(SslProtocols, bool, RemoteCertificateValidationCallback)
Creates SSL options used for SSL connections with Casandra hosts.
Declaration
public SSLOptions(SslProtocols sslProtocol, bool checkCertificateRevocation, RemoteCertificateValidationCallback remoteCertValidationCallback)
Parameters
Type | Name | Description |
---|---|---|
SslProtocols | sslProtocol | type of SSL protocol, default set to Tls. |
bool | checkCertificateRevocation | specifies whether the certificate revocation list is checked during connection authentication. |
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 |
---|---|
X509CertificateCollection |
CheckCertificateRevocation
Determines whether the certificate revocation list is checked during connection authentication.
Declaration
public bool CheckCertificateRevocation { get; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
Func<IPAddress, string> |
RemoteCertValidationCallback
Verifies Cassandra host SSL certificate used for authentication.
Declaration
public RemoteCertificateValidationCallback RemoteCertValidationCallback { get; }
Property Value
Type | Description |
---|---|
RemoteCertificateValidationCallback |
SslProtocol
Ssl Protocol used for communication with Cassandra hosts.
Declaration
public SslProtocols SslProtocol { get; }
Property Value
Type | Description |
---|---|
SslProtocols |
Methods
SetCertificateCollection(X509CertificateCollection)
Sets the collection that contains the client certificates
Declaration
public SSLOptions SetCertificateCollection(X509CertificateCollection certificates)
Parameters
Type | Name | Description |
---|---|---|
X509CertificateCollection | certificates |
Returns
Type | Description |
---|---|
SSLOptions |
SetCertificateRevocationCheck(bool)
Determines whether the certificate revocation list is checked during connection authentication.
Declaration
public SSLOptions SetCertificateRevocationCheck(bool flag)
Parameters
Type | Name | Description |
---|---|---|
bool | 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 |
---|---|---|
Func<IPAddress, 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 |
---|---|---|
RemoteCertificateValidationCallback | callback |
Returns
Type | Description |
---|---|
SSLOptions |