Class ClientEncryptionPolicy

java.lang.Object
com.azure.cosmos.models.ClientEncryptionPolicy

public final class ClientEncryptionPolicy extends Object
Client encryption policy.
  • Constructor Details

    • ClientEncryptionPolicy

      public ClientEncryptionPolicy(List<ClientEncryptionIncludedPath> paths)
      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

      public ClientEncryptionPolicy(List<ClientEncryptionIncludedPath> paths, int policyFormatVersion)
      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

      public List<ClientEncryptionIncludedPath> 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