类 StaticEncryptionMaterialsProvider
- java.lang.Object
-
- com.tencent.cos.xml.crypto.StaticEncryptionMaterialsProvider
-
- 所有已实现的接口:
EncryptionMaterialsAccessor,EncryptionMaterialsFactory,EncryptionMaterialsProvider,java.io.Serializable
- 直接已知子类:
KMSEncryptionMaterialsProvider
public class StaticEncryptionMaterialsProvider extends java.lang.Object implements EncryptionMaterialsProvider, java.io.Serializable
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 StaticEncryptionMaterialsProvider(EncryptionMaterials materials)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 EncryptionMaterialsgetEncryptionMaterials()Returns EncryptionMaterials which the caller can use for encryption.EncryptionMaterialsgetEncryptionMaterials(java.util.Map<java.lang.String,java.lang.String> materialDescIn)Retrieves encryption materials matching the specified description from some source.voidrefresh()Forces this encryption materials provider to refresh its encryption material.
-
-
-
构造器详细资料
-
StaticEncryptionMaterialsProvider
public StaticEncryptionMaterialsProvider(EncryptionMaterials materials)
-
-
方法详细资料
-
getEncryptionMaterials
public EncryptionMaterials getEncryptionMaterials()
从接口复制的说明:EncryptionMaterialsFactoryReturns EncryptionMaterials which the caller can use for encryption. Each implementation of EncryptionMaterialsProvider can choose its own strategy for loading encryption material. For example, an implementation might load encryption material from an existing key management system, or load new encryption material when keys are rotated.- 指定者:
getEncryptionMaterials在接口中EncryptionMaterialsFactory- 返回:
- EncryptionMaterials which the caller can use to encrypt or decrypt data.
-
refresh
public void refresh()
从接口复制的说明:EncryptionMaterialsProviderForces this encryption materials provider to refresh its encryption material. For many implementations of encryption materials provider, this may simply be a no-op, such as any encryption materials provider implementation that vends static/non-changing encryption material. For other implementations that vend different encryption material throughout their lifetime, this method should force the encryption materials provider to refresh its encryption material.- 指定者:
refresh在接口中EncryptionMaterialsProvider
-
getEncryptionMaterials
public EncryptionMaterials getEncryptionMaterials(java.util.Map<java.lang.String,java.lang.String> materialDescIn)
从接口复制的说明:EncryptionMaterialsAccessorRetrieves encryption materials matching the specified description from some source.- 指定者:
getEncryptionMaterials在接口中EncryptionMaterialsAccessor- 参数:
materialDescIn- A Map whose key-value pairs describe an encryption materials object- 返回:
- The encryption materials that match the description, or null if no matching encryption materials found.
-
-