Class ClientEncryptionOptions
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.Encryption.dll
Client encryption options.
public sealed class ClientEncryptionOptions
- Inheritance
-
ClientEncryptionOptions
- Inherited Members
Constructors
- ClientEncryptionOptions(IMongoClient, CollectionNamespace, IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>>, Optional<IReadOnlyDictionary<string, SslSettings>>)
Initializes a new instance of the ClientEncryptionOptions class.
Properties
- KeyExpiration
Gets the data encryption key cache expiration time.
- KeyVaultClient
Gets the key vault client.
- KeyVaultNamespace
Gets the key vault namespace.
- KmsProviders
Gets the KMS providers.
- TlsOptions
Gets the tls options.
Methods
- SetKeyExpiration(TimeSpan?)
Sets the data encryption key cache expiration time. If not set, it defaults to 60 seconds. If set to TimeSpan.Zero, the cache never expires.
- With(Optional<IMongoClient>, Optional<CollectionNamespace>, Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>>>, Optional<IReadOnlyDictionary<string, SslSettings>>)
Returns a new ClientEncryptionOptions instance with some settings changed.