CustomerManagedKeyEncryptionProperties Class
- java.
lang. Object - com.
azure. resourcemanager. fluidrelay. models. CustomerManagedKeyEncryptionProperties
- com.
Implements
public final class CustomerManagedKeyEncryptionProperties
implements JsonSerializable<CustomerManagedKeyEncryptionProperties>
All Customer-managed key encryption properties for the resource.
Constructor Summary
| Constructor | Description |
|---|---|
| CustomerManagedKeyEncryptionProperties() |
Creates an instance of Customer |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Customer |
fromJson(JsonReader jsonReader)
Reads an instance of Customer |
|
Customer |
keyEncryptionKeyIdentity()
Get the key |
| String |
keyEncryptionKeyUrl()
Get the key |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Customer |
withKeyEncryptionKeyIdentity(CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity keyEncryptionKeyIdentity)
Set the key |
|
Customer |
withKeyEncryptionKeyUrl(String keyEncryptionKeyUrl)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
CustomerManagedKeyEncryptionProperties
public CustomerManagedKeyEncryptionProperties()
Creates an instance of CustomerManagedKeyEncryptionProperties class.
Method Details
fromJson
public static CustomerManagedKeyEncryptionProperties fromJson(JsonReader jsonReader)
Reads an instance of CustomerManagedKeyEncryptionProperties from the JsonReader.
Parameters:
Returns:
Throws:
keyEncryptionKeyIdentity
public CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity keyEncryptionKeyIdentity()
Get the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
Returns:
keyEncryptionKeyUrl
public String keyEncryptionKeyUrl()
Get the keyEncryptionKeyUrl property: key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
Returns:
toJson
validate
public void validate()
Validates the instance.
withKeyEncryptionKeyIdentity
public CustomerManagedKeyEncryptionProperties withKeyEncryptionKeyIdentity(CustomerManagedKeyEncryptionPropertiesKeyEncryptionKeyIdentity keyEncryptionKeyIdentity)
Set the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
Parameters:
Returns:
withKeyEncryptionKeyUrl
public CustomerManagedKeyEncryptionProperties withKeyEncryptionKeyUrl(String keyEncryptionKeyUrl)
Set the keyEncryptionKeyUrl property: key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
Parameters:
Returns: