Module spring.data.mongodb
Class CollectionOptions.EncryptedFieldsOptions
java.lang.Object
org.springframework.data.mongodb.core.CollectionOptions.EncryptedFieldsOptions
- Enclosing class:
- CollectionOptions
Encapsulation of Encryption options for collections.
- Since:
- 4.5
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionfromSchema(MongoJsonSchema schema) none()queryable(JsonSchemaProperty property, QueryCharacteristic... characteristics) Add a newqueryable propertyfor the given source property.org.bson.Document
-
Method Details
-
none
- Returns:
NONE
-
fromSchema
- Returns:
- new instance of
CollectionOptions.EncryptedFieldsOptions.
-
fromProperties
public static CollectionOptions.EncryptedFieldsOptions fromProperties(List<IdentifiableJsonSchemaProperty.QueryableJsonSchemaProperty> properties) - Returns:
- new instance of
CollectionOptions.EncryptedFieldsOptions.
-
queryable
@Contract("_, _ -> new") @CheckReturnValue public CollectionOptions.EncryptedFieldsOptions queryable(JsonSchemaProperty property, QueryCharacteristic... characteristics) Add a newqueryable propertyfor the given source property.Please note that, a given
JsonSchemaPropertymay override options from a givenMongoJsonSchemaif set.- Parameters:
property- the queryable source - typicallyencrypted.characteristics- the query options to set.- Returns:
- new instance of
CollectionOptions.EncryptedFieldsOptions.
-
toDocument
public org.bson.Document toDocument()
-