次の方法で共有


KeyEncryptionKey Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.KeyEncryptionKey

Implements

public final class KeyEncryptionKey
implements JsonSerializable<KeyEncryptionKey>

Encryption key containing details about key to encrypt different keys.

Constructor Summary

Constructor Description
KeyEncryptionKey()

Creates an instance of KeyEncryptionKey class.

Method Summary

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

Reads an instance of KeyEncryptionKey from the JsonReader.

IdentityProperties identityProperties()

Get the identityProperties property: Managed identity properties used for key encryption.

KekType kekType()

Get the kekType property: Type of encryption key used for key encryption.

String kekUrl()

Get the kekUrl property: Key encryption key.

String kekVaultResourceId()

Get the kekVaultResourceId property: Kek vault resource id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyEncryptionKey withIdentityProperties(IdentityProperties identityProperties)

Set the identityProperties property: Managed identity properties used for key encryption.

KeyEncryptionKey withKekType(KekType kekType)

Set the kekType property: Type of encryption key used for key encryption.

KeyEncryptionKey withKekUrl(String kekUrl)

Set the kekUrl property: Key encryption key.

KeyEncryptionKey withKekVaultResourceId(String kekVaultResourceId)

Set the kekVaultResourceId property: Kek vault resource id.

Methods inherited from java.lang.Object

Constructor Details

KeyEncryptionKey

public KeyEncryptionKey()

Creates an instance of KeyEncryptionKey class.

Method Details

fromJson

public static KeyEncryptionKey fromJson(JsonReader jsonReader)

Reads an instance of KeyEncryptionKey from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

identityProperties

public IdentityProperties identityProperties()

Get the identityProperties property: Managed identity properties used for key encryption.

Returns:

the identityProperties value.

kekType

public KekType kekType()

Get the kekType property: Type of encryption key used for key encryption.

Returns:

the kekType value.

kekUrl

public String kekUrl()

Get the kekUrl property: Key encryption key. It is required in case of Customer managed KekType.

Returns:

the kekUrl value.

kekVaultResourceId

public String kekVaultResourceId()

Get the kekVaultResourceId property: Kek vault resource id. It is required in case of Customer managed KekType.

Returns:

the kekVaultResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentityProperties

public KeyEncryptionKey withIdentityProperties(IdentityProperties identityProperties)

Set the identityProperties property: Managed identity properties used for key encryption.

Parameters:

identityProperties - the identityProperties value to set.

Returns:

the KeyEncryptionKey object itself.

withKekType

public KeyEncryptionKey withKekType(KekType kekType)

Set the kekType property: Type of encryption key used for key encryption.

Parameters:

kekType - the kekType value to set.

Returns:

the KeyEncryptionKey object itself.

withKekUrl

public KeyEncryptionKey withKekUrl(String kekUrl)

Set the kekUrl property: Key encryption key. It is required in case of Customer managed KekType.

Parameters:

kekUrl - the kekUrl value to set.

Returns:

the KeyEncryptionKey object itself.

withKekVaultResourceId

public KeyEncryptionKey withKekVaultResourceId(String kekVaultResourceId)

Set the kekVaultResourceId property: Kek vault resource id. It is required in case of Customer managed KekType.

Parameters:

kekVaultResourceId - the kekVaultResourceId value to set.

Returns:

the KeyEncryptionKey object itself.

Applies to