Поделиться через


CustomerManagedKeyEncryption Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.CustomerManagedKeyEncryption

Implements

public final class CustomerManagedKeyEncryption
implements JsonSerializable<CustomerManagedKeyEncryption>

All Customer-managed key encryption properties for the resource.

Constructor Summary

Constructor Description
CustomerManagedKeyEncryption()

Creates an instance of CustomerManagedKeyEncryption class.

Method Summary

Modifier and Type Method and Description
static CustomerManagedKeyEncryption fromJson(JsonReader jsonReader)

Reads an instance of CustomerManagedKeyEncryption from the JsonReader.

CustomerManagedKeyEncryptionKeyIdentity keyEncryptionKeyIdentity()

Get the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

String keyEncryptionKeyUrl()

Get the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomerManagedKeyEncryption withKeyEncryptionKeyIdentity(CustomerManagedKeyEncryptionKeyIdentity keyEncryptionKeyIdentity)

Set the keyEncryptionKeyIdentity property: All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

CustomerManagedKeyEncryption withKeyEncryptionKeyUrl(String keyEncryptionKeyUrl)

Set the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned.

Methods inherited from java.lang.Object

Constructor Details

CustomerManagedKeyEncryption

public CustomerManagedKeyEncryption()

Creates an instance of CustomerManagedKeyEncryption class.

Method Details

fromJson

public static CustomerManagedKeyEncryption fromJson(JsonReader jsonReader)

Reads an instance of CustomerManagedKeyEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomerManagedKeyEncryption if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CustomerManagedKeyEncryption.

keyEncryptionKeyIdentity

public CustomerManagedKeyEncryptionKeyIdentity 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:

the keyEncryptionKeyIdentity value.

keyEncryptionKeyUrl

public String keyEncryptionKeyUrl()

Get the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.

Returns:

the keyEncryptionKeyUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyEncryptionKeyIdentity

public CustomerManagedKeyEncryption withKeyEncryptionKeyIdentity(CustomerManagedKeyEncryptionKeyIdentity 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:

keyEncryptionKeyIdentity - the keyEncryptionKeyIdentity value to set.

Returns:

the CustomerManagedKeyEncryption object itself.

withKeyEncryptionKeyUrl

public CustomerManagedKeyEncryption withKeyEncryptionKeyUrl(String keyEncryptionKeyUrl)

Set the keyEncryptionKeyUrl property: key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.

Parameters:

keyEncryptionKeyUrl - the keyEncryptionKeyUrl value to set.

Returns:

the CustomerManagedKeyEncryption object itself.

Applies to