Encryption Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. Encryption
- com.
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 |
---|---|
Encryption |
encryptionIdentity()
Get the encryption |
static Encryption |
fromJson(JsonReader jsonReader)
Reads an instance of Encryption from the Json |
Key |
keySource()
Get the key |
Key |
keyVaultProperties()
Get the key |
Boolean |
requireInfrastructureEncryption()
Get the require |
Encryption |
services()
Get the services property: List of services which support encryption. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Encryption |
withEncryptionIdentity(EncryptionIdentity encryptionIdentity)
Set the encryption |
Encryption |
withKeySource(KeySource keySource)
Set the key |
Encryption |
withKeyVaultProperties(KeyVaultProperties keyVaultProperties)
Set the key |
Encryption |
withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)
Set the require |
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:
fromJson
public static Encryption fromJson(JsonReader jsonReader)
Reads an instance of Encryption from the JsonReader.
Parameters:
Returns:
Throws:
keySource
public KeySource keySource()
Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
Returns:
keyVaultProperties
public KeyVaultProperties keyVaultProperties()
Get the keyVaultProperties property: Properties provided by key vault.
Returns:
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:
services
public EncryptionServices services()
Get the services property: List of services which support encryption.
Returns:
toJson
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:
Returns:
withKeySource
public Encryption withKeySource(KeySource keySource)
Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
Parameters:
Returns:
withKeyVaultProperties
public Encryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties)
Set the keyVaultProperties property: Properties provided by key vault.
Parameters:
Returns:
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:
Returns:
withServices
public Encryption withServices(EncryptionServices services)
Set the services property: List of services which support encryption.
Parameters:
Returns:
Applies to
Azure SDK for Java