Encryption Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.Encryption

Implements

public final class Encryption
implements JsonSerializable<Encryption>

The encryption settings on the storage account.

Constructor Summary

Constructor Description
Encryption()

Creates an instance of Encryption class.

Method Summary

Modifier and Type Method and Description
EncryptionIdentity encryptionIdentity()

Get the encryptionIdentity property: The identity to be used with service-side encryption at rest.

static Encryption fromJson(JsonReader jsonReader)

Reads an instance of Encryption from the JsonReader.

KeySource keySource()

Get the keySource property: The encryption keySource (provider).

KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Properties provided by key vault.

Boolean requireInfrastructureEncryption()

Get the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.

EncryptionServices services()

Get the services property: List of services which support encryption.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Encryption withEncryptionIdentity(EncryptionIdentity encryptionIdentity)

Set the encryptionIdentity property: The identity to be used with service-side encryption at rest.

Encryption withKeySource(KeySource keySource)

Set the keySource property: The encryption keySource (provider).

Encryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Properties provided by key vault.

Encryption withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)

Set the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.

Encryption withServices(EncryptionServices services)

Set the services property: List of services which support encryption.

Methods inherited from java.lang.Object

Constructor Details

Encryption

public Encryption()

Creates an instance of Encryption class.

Method Details

encryptionIdentity

public EncryptionIdentity encryptionIdentity()

Get the encryptionIdentity property: The identity to be used with service-side encryption at rest.

Returns:

the encryptionIdentity value.

fromJson

public static Encryption fromJson(JsonReader jsonReader)

Reads an instance of Encryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Encryption 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 Encryption.

keySource

public KeySource keySource()

Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.

Returns:

the keySource value.

keyVaultProperties

public KeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: Properties provided by key vault.

Returns:

the keyVaultProperties value.

requireInfrastructureEncryption

public Boolean requireInfrastructureEncryption()

Get the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.

Returns:

the requireInfrastructureEncryption value.

services

public EncryptionServices services()

Get the services property: List of services which support encryption.

Returns:

the services value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEncryptionIdentity

public Encryption withEncryptionIdentity(EncryptionIdentity encryptionIdentity)

Set the encryptionIdentity property: The identity to be used with service-side encryption at rest.

Parameters:

encryptionIdentity - the encryptionIdentity value to set.

Returns:

the Encryption object itself.

withKeySource

public Encryption withKeySource(KeySource keySource)

Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.

Parameters:

keySource - the keySource value to set.

Returns:

the Encryption object itself.

withKeyVaultProperties

public Encryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: Properties provided by key vault.

Parameters:

keyVaultProperties - the keyVaultProperties value to set.

Returns:

the Encryption object itself.

withRequireInfrastructureEncryption

public Encryption withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)

Set the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.

Parameters:

requireInfrastructureEncryption - the requireInfrastructureEncryption value to set.

Returns:

the Encryption object itself.

withServices

public Encryption withServices(EncryptionServices services)

Set the services property: List of services which support encryption.

Parameters:

services - the services value to set.

Returns:

the Encryption object itself.

Applies to