ClientEncryptionKeyResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ClientEncryptionKeyResource
- com.
Implements
public class ClientEncryptionKeyResource
implements JsonSerializable<ClientEncryptionKeyResource>
Cosmos DB client encryption key resource object.
Constructor Summary
Constructor | Description |
---|---|
ClientEncryptionKeyResource() |
Creates an instance of Client |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
encryptionAlgorithm()
Get the encryption |
static
Client |
fromJson(JsonReader jsonReader)
Reads an instance of Client |
String |
id()
Get the id property: Name of the Client |
Key |
keyWrapMetadata()
Get the key |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Client |
withEncryptionAlgorithm(String encryptionAlgorithm)
Set the encryption |
Client |
withId(String id)
Set the id property: Name of the Client |
Client |
withKeyWrapMetadata(KeyWrapMetadata keyWrapMetadata)
Set the key |
Client |
withWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey)
Set the wrapped |
byte[] |
wrappedDataEncryptionKey()
Get the wrapped |
Methods inherited from java.lang.Object
Constructor Details
ClientEncryptionKeyResource
public ClientEncryptionKeyResource()
Creates an instance of ClientEncryptionKeyResource class.
Method Details
encryptionAlgorithm
public String encryptionAlgorithm()
Get the encryptionAlgorithm property: Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
Returns:
fromJson
public static ClientEncryptionKeyResource fromJson(JsonReader jsonReader)
Reads an instance of ClientEncryptionKeyResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the ClientEncryptionKey.
Returns:
keyWrapMetadata
public KeyWrapMetadata keyWrapMetadata()
Get the keyWrapMetadata property: Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEncryptionAlgorithm
public ClientEncryptionKeyResource withEncryptionAlgorithm(String encryptionAlgorithm)
Set the encryptionAlgorithm property: Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
Parameters:
Returns:
withId
public ClientEncryptionKeyResource withId(String id)
Set the id property: Name of the ClientEncryptionKey.
Parameters:
Returns:
withKeyWrapMetadata
public ClientEncryptionKeyResource withKeyWrapMetadata(KeyWrapMetadata keyWrapMetadata)
Set the keyWrapMetadata property: Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
Parameters:
Returns:
withWrappedDataEncryptionKey
public ClientEncryptionKeyResource withWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey)
Set the wrappedDataEncryptionKey property: Wrapped (encrypted) form of the key represented as a byte array.
Parameters:
Returns:
wrappedDataEncryptionKey
public byte[] wrappedDataEncryptionKey()
Get the wrappedDataEncryptionKey property: Wrapped (encrypted) form of the key represented as a byte array.
Returns:
Applies to
Azure SDK for Java