Enum CryptoStorageMode

java.lang.Object
java.lang.Enum<CryptoStorageMode>
com.amazonaws.services.s3.model.CryptoStorageMode
All Implemented Interfaces:
Serializable, Comparable<CryptoStorageMode>, java.lang.constant.Constable

public enum CryptoStorageMode extends Enum<CryptoStorageMode>
Denotes the different storage modes available for storing the encryption information that accompanies encrypted objects in S3. The encryption information includes an encrypted envelope symmetric key, an initialization vector, and a description of the encryption materials used during encryption.

ObjectMetadata is the default storage mode. If the ObjectMetadata mode is used, then encryption information will be placed in the metadata of the encrypted object stored in S3. Note: There is a 2 KB limit on the size of the metadata, so be careful that you do not run out of space if you are storing a lot of your own metadata.

If the InstructionFile mode is used, then encryption information will be placed in a separate instruction file that will be stored in the same bucket as the encrypted object in S3. No metadata will be used for storing encryption information.

  • Enum Constant Details

  • Method Details

    • values

      public static CryptoStorageMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CryptoStorageMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null