你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ClientEncryptionPolicy Class

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

public final class ClientEncryptionPolicy

Client encryption policy.

Constructor Summary

Constructor Description
ClientEncryptionPolicy()

Constructor.

ClientEncryptionPolicy(List<ClientEncryptionIncludedPath> paths)

Constructor.

ClientEncryptionPolicy(List<ClientEncryptionIncludedPath> paths, int policyFormatVersion)

Constructor.

Method Summary

Modifier and Type Method and Description
List<ClientEncryptionIncludedPath> getIncludedPaths()

Gets the list of paths of the item that need encryption along with path-specific settings.

int getPolicyFormatVersion()

Version of the client encryption policy definition.

Methods inherited from java.lang.Object

Constructor Details

ClientEncryptionPolicy

public ClientEncryptionPolicy()

Constructor.

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.

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

Applies to