EncryptionMode: "REQUIRED" | "DISABLED" | "AUTO"

Encryption/Decryption mode to be used when an image is loaded/saved.

  • REQUIRED: Encryption/Decryption is used when loading/saving an image. A crypting provider must first be set using ImageRef.setStorageCryptingProvider. If no provider is set, the loading/saving operation will fail.
  • DISABLED: Encryption is not used when loading or saving images. Trying to load an encrypted image will fail.
  • AUTO: When saving, images are encrypted only if a crypting provider is set using ImageRef.setStorageCryptingProvider. When loading, images will be decrypted if they're encrypted and a crypting provider is set, and loaded as-is otherwise.