Package com.mongodb.client.model
Class CreateEncryptedCollectionParams
java.lang.Object
com.mongodb.client.model.CreateEncryptedCollectionParams
Auxiliary parameters for creating an encrypted collection.
- Since:
- 4.9
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the KMS provider.The master key for creating a data key.masterKey
(BsonDocument masterKey) Sets the master key for creating a data key.toString()
-
Constructor Details
-
CreateEncryptedCollectionParams
- Parameters:
kmsProvider
- The name of the KMS provider.
-
-
Method Details
-
getKmsProvider
The name of the KMS provider.- Returns:
- The name of the KMS provider.
-
masterKey
Sets the master key for creating a data key.- Parameters:
masterKey
- The master key for creating a data key.- Returns:
this
.
-
getMasterKey
The master key for creating a data key. The default isnull
.- Returns:
- The master key for creating a data key.
-
toString
-