Package com.mongodb.crypt.capi
Class MongoDataKeyOptions.Builder
- java.lang.Object
-
- com.mongodb.crypt.capi.MongoDataKeyOptions.Builder
-
- Enclosing class:
- MongoDataKeyOptions
public static class MongoDataKeyOptions.Builder extends java.lang.ObjectOptions builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MongoDataKeyOptionsbuild()Build the options.MongoDataKeyOptions.BuilderkeyAltNames(java.util.List<java.lang.String> keyAltNames)Add alternate key namesMongoDataKeyOptions.BuilderkeyMaterial(byte[] keyMaterial)Add the key materialMongoDataKeyOptions.BuildermasterKey(org.bson.BsonDocument masterKey)Add the master key.
-
-
-
Method Detail
-
keyAltNames
public MongoDataKeyOptions.Builder keyAltNames(java.util.List<java.lang.String> keyAltNames)
Add alternate key names- Parameters:
keyAltNames- the alternate key names- Returns:
- this
-
masterKey
public MongoDataKeyOptions.Builder masterKey(org.bson.BsonDocument masterKey)
Add the master key.- Parameters:
masterKey- the master key- Returns:
- this
-
keyMaterial
public MongoDataKeyOptions.Builder keyMaterial(byte[] keyMaterial)
Add the key material- Parameters:
keyMaterial- the optional custom key material for the data key- Returns:
- this
- Since:
- 1.5
-
build
public MongoDataKeyOptions build()
Build the options.- Returns:
- the options
-
-