public enum CryptoStorageMode extends Enum<CryptoStorageMode>
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 and Description |
---|
InstructionFile |
ObjectMetadata |
Modifier and Type | Method and Description |
---|---|
static CryptoStorageMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CryptoStorageMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CryptoStorageMode InstructionFile
public static final CryptoStorageMode ObjectMetadata
public static CryptoStorageMode[] values()
for (CryptoStorageMode c : CryptoStorageMode.values()) System.out.println(c);
public static CryptoStorageMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.