Package com.azure.cosmos.models
Class ClientEncryptionPolicy
java.lang.Object
com.azure.cosmos.models.ClientEncryptionPolicy
Client encryption policy.
-
Constructor Summary
ConstructorDescriptionConstructor.Constructor.ClientEncryptionPolicy
(List<ClientEncryptionIncludedPath> paths, int policyFormatVersion) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of paths of the item that need encryption along with path-specific settings.int
Version of the client encryption policy definition.
-
Constructor Details
-
ClientEncryptionPolicy
Constructor.- Parameters:
paths
- list of path of the item that need encryption along with path-specific settings. the PolicyFormatVersion will be set to 1 which is the default value. Note: If you need to include partition key or id field paths as part of the ClientEncryptionPolicy, please set PolicyFormatVersion to 2.
-
ClientEncryptionPolicy
Constructor.- Parameters:
paths
- list of path of the item that need encryption along with path-specific settings.policyFormatVersion
- version of the client encryption policy definition. Current supported versions are 1 and 2. Default version is 1. Note: If you need to include partition key or id field paths as part of the ClientEncryptionPolicy, please set PolicyFormatVersion to 2.
-
ClientEncryptionPolicy
public ClientEncryptionPolicy()Constructor.
-
-
Method Details
-
getIncludedPaths
Gets the list of paths of the item that need encryption along with path-specific settings.- Returns:
- includedPaths
-
getPolicyFormatVersion
public int getPolicyFormatVersion()Version of the client encryption policy definition.- Returns:
- policyFormatVersion
-