TlsPolicy Class

Aerospike
TLS connection policy. Secure connections are only supported for AerospikeClient synchronous commands.

Secure connections are not supported for asynchronous commands because AsyncClient uses the best performing SocketAsyncEventArgs. Unfortunately, SocketAsyncEventArgs is not supported by the provided SslStream.

Inheritance Hierarchy

SystemObject
  Aerospike.ClientTlsPolicy

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public sealed class TlsPolicy

The TlsPolicy type exposes the following members.

Constructors

  NameDescription
Public methodTlsPolicy
Default constructor.
Public methodTlsPolicy(TlsPolicy)
Copy constructor.
Public methodTlsPolicy(String, String, String, Boolean)
Constructor for TLS properties.
Top
Fields

  NameDescription
Public fieldclientCertificates
Client certificates to pass to server when server requires mutual authentication.

Default: null (Client authenticates server, but server does not authenticate client)

Public fieldforLoginOnly
Use TLS connections only for login authentication. All other communication with the server will be done with non-TLS connections.

Default: false (Use TLS connections for all communication with server)

Public fieldprotocols
Allowable TLS protocols that the client can use for secure connections. Multiple protocols can be specified. Example:
TlsPolicy policy = new TlsPolicy();
policy.protocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12;
Default: SslProtocols.Tls12
Public fieldrevokeCertificates
Reject server certificates whose serial numbers match a serial number in this array.

Default: null (Do not exclude by certificate serial number)

Top
See Also

Reference