Class ClientEncryptionSettings
Explicit encryption/decryption is a community feature, enabled with the new com.mongodb.client.vault.ClientEncryption
type,
for which this is the settings.
- Since:
- 3.11
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Deprecated.Usage of this API is not supported in AEM as a Cloud Service. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated.Convenience method to create a Builder.Deprecated.Gets the key vault settings.Deprecated.Gets the key vault namespace.Deprecated.Gets the map of KMS provider properties.
-
Method Details
-
builder
Deprecated.Convenience method to create a Builder.- Returns:
- a builder
-
getKeyVaultMongoClientSettings
Deprecated.Gets the key vault settings.The key vault collection is assumed to reside on the same MongoDB cluster as indicated by the connecting URI. But the optional keyVaultMongoClientSettings can be used to route data key queries to a separate MongoDB cluster, or the same cluster but with a different credential.
- Returns:
- the key vault settings, which may be null to indicate that the same
MongoClient
should be used to access the key vault collection as is used for the rest of the application.
-
getKeyVaultNamespace
Deprecated.Gets the key vault namespace.The key vault namespace refers to a collection that contains all data keys used for encryption and decryption (aka the key vault collection). Data keys are stored as documents in a special MongoDB collection. Data keys are protected with encryption by a KMS provider (AWS KMS or a local master key).
- Returns:
- the key vault namespace, which may not be null
-
getKmsProviders
Deprecated.Gets the map of KMS provider properties.Multiple KMS providers may be specified. Initially, two KMS providers are supported: "aws" and "local". The kmsProviders map values differ by provider:
For "aws", the properties are:
- accessKeyId: a String containing the AWS access key identifier
- secretAccessKey: a String the AWS secret access key
For "local", the properties are:
- key: <byte array of length 96>
- Returns:
- map of KMS provider properties
-