Class EncryptionService


  • public final class EncryptionService
    extends Object
    A service that allows server-side encryption to be used.
    • Constructor Detail

      • EncryptionService

        public EncryptionService()
    • Method Detail

      • enabled

        public Boolean enabled()
        Get the enabled property: A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled.
        Returns:
        the enabled value.
      • withEnabled

        public EncryptionService withEnabled​(Boolean enabled)
        Set the enabled property: A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the EncryptionService object itself.
      • lastEnabledTime

        public OffsetDateTime lastEnabledTime()
        Get the lastEnabledTime property: Gets a rough estimate of the date/time when the encryption was last enabled by the user. Data is encrypted at rest by default today and cannot be disabled.
        Returns:
        the lastEnabledTime value.
      • keyType

        public KeyType keyType()
        Get the keyType property: 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.
        Returns:
        the keyType value.
      • withKeyType

        public EncryptionService withKeyType​(KeyType keyType)
        Set the keyType property: 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.
        Parameters:
        keyType - the keyType value to set.
        Returns:
        the EncryptionService object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.