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 COS. 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 COS. No metadata will be used for storing encryption information.
| 枚举常量和说明 |
|---|
InstructionFile |
ObjectMetadata |
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.