Package com.mongodb.crypt.capi
Class MongoDataKeyOptions
- java.lang.Object
-
- com.mongodb.crypt.capi.MongoDataKeyOptions
-
public class MongoDataKeyOptions extends java.lang.ObjectThe options for creation of a data key
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMongoDataKeyOptions.BuilderOptions builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoDataKeyOptions.Builderbuilder()Create a builder for the options.java.util.List<java.lang.String>getKeyAltNames()Gets the alternate key names for the data key.byte[]getKeyMaterial()Gets the custom key material if set.org.bson.BsonDocumentgetMasterKey()Gets the master key for the data key.
-
-
-
Method Detail
-
builder
public static MongoDataKeyOptions.Builder builder()
Create a builder for the options.- Returns:
- the builder
-
getKeyAltNames
public java.util.List<java.lang.String> getKeyAltNames()
Gets the alternate key names for the data key.- Returns:
- the alternate key names
-
getMasterKey
public org.bson.BsonDocument getMasterKey()
Gets the master key for the data key.- Returns:
- the master key
-
getKeyMaterial
public byte[] getKeyMaterial()
Gets the custom key material if set.- Returns:
- the custom key material for the data key or null
- Since:
- 1.5
-
-