KeyEncryptionKey Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. KeyEncryptionKey
- com.
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 Key |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
|
Identity |
identityProperties()
Get the identity |
|
Kek |
kekType()
Get the kek |
| String |
kekUrl()
Get the kek |
| String |
kekVaultResourceId()
Get the kek |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Key |
withIdentityProperties(IdentityProperties identityProperties)
Set the identity |
|
Key |
withKekType(KekType kekType)
Set the kek |
|
Key |
withKekUrl(String kekUrl)
Set the kek |
|
Key |
withKekVaultResourceId(String kekVaultResourceId)
Set the kek |
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:
Returns:
Throws:
identityProperties
public IdentityProperties identityProperties()
Get the identityProperties property: Managed identity properties used for key encryption.
Returns:
kekType
public KekType kekType()
Get the kekType property: Type of encryption key used for key encryption.
Returns:
kekUrl
public String kekUrl()
Get the kekUrl property: Key encryption key. It is required in case of Customer managed KekType.
Returns:
kekVaultResourceId
public String kekVaultResourceId()
Get the kekVaultResourceId property: Kek vault resource id. It is required in case of Customer managed KekType.
Returns:
toJson
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:
Returns:
withKekType
public KeyEncryptionKey withKekType(KekType kekType)
Set the kekType property: Type of encryption key used for key encryption.
Parameters:
Returns:
withKekUrl
public KeyEncryptionKey withKekUrl(String kekUrl)
Set the kekUrl property: Key encryption key. It is required in case of Customer managed KekType.
Parameters:
Returns:
withKekVaultResourceId
public KeyEncryptionKey withKekVaultResourceId(String kekVaultResourceId)
Set the kekVaultResourceId property: Kek vault resource id. It is required in case of Customer managed KekType.
Parameters:
Returns: