@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public final class CosmosClientEncryptionKeyProperties extends Object
Constructor and Description |
---|
CosmosClientEncryptionKeyProperties(String id,
String encryptionAlgorithm,
byte[] wrappedDataEncryptionKey,
EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getEncryptionAlgorithm()
Gets the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
|
EncryptionKeyWrapMetadata |
getEncryptionKeyWrapMetadata()
Gets the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
|
String |
getETag()
Get the entity tag associated with the resource.
|
String |
getId()
Gets the name of the resource.
|
Instant |
getTimestamp()
Get the last modified timestamp associated with the resource.
|
byte[] |
getWrappedDataEncryptionKey()
Gets the wrapped form of the client encryption key.
|
CosmosClientEncryptionKeyProperties |
setEncryptionAlgorithm(String encryptionAlgorithm)
Sets the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
|
CosmosClientEncryptionKeyProperties |
setEncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
Sets the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
|
CosmosClientEncryptionKeyProperties |
setId(String id)
Sets the name of the resource.
|
CosmosClientEncryptionKeyProperties |
setWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey)
Sets the wrapped form of the client encryption key.
|
@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public CosmosClientEncryptionKeyProperties(String id, String encryptionAlgorithm, byte[] wrappedDataEncryptionKey, EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
id
- Unique identifier for the client encryption key.encryptionAlgorithm
- Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.wrappedDataEncryptionKey
- Wrapped (encrypted) form of the client encryption key.encryptionKeyWrapMetadata
- Metadata used by the configured key wrapping provider in order to unwrap the key.@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getEncryptionAlgorithm()
@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public CosmosClientEncryptionKeyProperties setEncryptionAlgorithm(String encryptionAlgorithm)
encryptionAlgorithm
- the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public byte[] getWrappedDataEncryptionKey()
@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public CosmosClientEncryptionKeyProperties setWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey)
wrappedDataEncryptionKey
- the wrapped form of the client encryption key.@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public EncryptionKeyWrapMetadata getEncryptionKeyWrapMetadata()
@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public CosmosClientEncryptionKeyProperties setEncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata encryptionKeyWrapMetadata)
encryptionKeyWrapMetadata
- the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getId()
@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public CosmosClientEncryptionKeyProperties setId(String id)
id
- the name of the resource.CosmosContainerProperties
.@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public Instant getTimestamp()
@Beta(value=V4_14_0, warningText="Preview API - subject to change in non-backwards compatible way") public String getETag()
Copyright © 2021 Microsoft Corporation. All rights reserved.