EncryptionService Class
- java.
lang. Object - com.
microsoft. azure. management. storage. EncryptionService
- com.
public class EncryptionService
A service that allows server-side encryption to be used.
Constructor Summary
Constructor | Description | |
---|---|---|
EncryptionService() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
enabled()
Get a boolean indicating whether or not the service encrypts the data as it is stored. |
Key |
keyType()
Get encryption key type to be used for the encryption service. |
org.joda.time.DateTime |
lastEnabledTime()
Get gets a rough estimate of the date/time when the encryption was last enabled by the user. |
Encryption |
withEnabled(Boolean enabled)
Set a boolean indicating whether or not the service encrypts the data as it is stored. |
Encryption |
withKeyType(KeyType keyType)
Set encryption key type to be used for the encryption service. |
Methods inherited from java.lang.Object
Constructor Details
EncryptionService
public EncryptionService()
Method Details
enabled
public Boolean enabled()
Get a boolean indicating whether or not the service encrypts the data as it is stored.
Returns:
keyType
public KeyType 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:
lastEnabledTime
public 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:
withEnabled
public EncryptionService withEnabled(Boolean enabled)
Set a boolean indicating whether or not the service encrypts the data as it is stored.
Parameters:
Returns:
withKeyType
public EncryptionService withKeyType(KeyType keyType)
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:
Returns:
Applies to
Azure SDK for Java
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin