Class EncryptionService
java.lang.Object
com.microsoft.azure.management.storage.EncryptionService
A service that allows server-side encryption to be used.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get a boolean indicating whether or not the service encrypts the data as it is stored.keyType()
Get encryption key type to be used for the encryption service.org.joda.time.DateTime
Get gets a rough estimate of the date/time when the encryption was last enabled by the user.withEnabled
(Boolean enabled) Set a boolean indicating whether or not the service encrypts the data as it is stored.withKeyType
(KeyType keyType) Set encryption key type to be used for the encryption service.
-
Constructor Details
-
EncryptionService
public EncryptionService()
-
-
Method Details
-
enabled
Get a boolean indicating whether or not the service encrypts the data as it is stored.- Returns:
- the enabled value
-
withEnabled
Set a boolean indicating whether or not the service encrypts the data as it is stored.- Parameters:
enabled
- the enabled value to set- Returns:
- the EncryptionService object itself.
-
lastEnabledTime
public org.joda.time.DateTime lastEnabledTime()Get gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate.- Returns:
- the lastEnabledTime value
-
keyType
Get encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used. Possible values include: 'Service', 'Account'.- Returns:
- the keyType value
-
withKeyType
Set encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used. Possible values include: 'Service', 'Account'.- Parameters:
keyType
- the keyType value to set- Returns:
- the EncryptionService object itself.
-