public interface DataKeyCache
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DataKeyCache.DecryptEntry
缓存的解密密钥条目抽象接口
|
static interface |
DataKeyCache.EncryptEntry
缓存的加密密钥条目抽象接口
|
static class |
DataKeyCache.UsageInfo
密钥材料的使用情况,保存了已加密字节数和加密信息条数
|
| Modifier and Type | Method and Description |
|---|---|
DataKeyCache.DecryptEntry |
getDecryptEntry(String key)
从缓存中搜索一个与标识符匹配的解密密钥条目
|
DataKeyCache.EncryptEntry |
getEncryptEntry(String key,
DataKeyCache.UsageInfo usageInfo)
从缓存中搜索一个与标识符匹配的加密密钥条目
|
void |
putDecryptEntry(String key,
long survivalTime,
DecryptionMaterial material)
向缓存中添加一个新的解密密钥材料
|
void |
putEncryptEntry(String key,
long survivalTime,
EncryptionMaterial material,
DataKeyCache.UsageInfo usageInfo)
向缓存中添加一个新的加密密钥材料
|
DataKeyCache.EncryptEntry getEncryptEntry(String key, DataKeyCache.UsageInfo usageInfo)
key - 缓存标识符usageInfo - 本次获取密钥材料增加的使用量void putEncryptEntry(String key, long survivalTime, EncryptionMaterial material, DataKeyCache.UsageInfo usageInfo)
key - 缓存标识符survivalTime - 缓存最大生存时间material - 加密密钥材料usageInfo - 密钥初始使用情况DataKeyCache.DecryptEntry getDecryptEntry(String key)
key - 缓存标识符void putDecryptEntry(String key, long survivalTime, DecryptionMaterial material)
key - 缓存标识符survivalTime - 缓存最大生存时间material - 解密密钥材料Copyright © 2020. All rights reserved.