| Package | Description |
|---|---|
| com.aliyun.encryptionsdk | |
| com.aliyun.encryptionsdk.ckm | |
| com.aliyun.encryptionsdk.handler | |
| com.aliyun.encryptionsdk.provider.dataKey |
| Modifier and Type | Method and Description |
|---|---|
CryptoResult<byte[]> |
AliyunCrypto.decrypt(BaseDataKeyProvider provider,
byte[] cipherText)
使用
BaseDataKeyProvider 获取加密使用的dataKey解密 cipherText |
CryptoResult<OutputStream> |
AliyunCrypto.decrypt(BaseDataKeyProvider provider,
InputStream inputStream,
OutputStream outputStream)
|
CryptoResult<byte[]> |
AliyunCrypto.encrypt(BaseDataKeyProvider provider,
byte[] plainText)
使用
BaseDataKeyProvider 生成dataKey加密 plaintext |
CryptoResult<byte[]> |
AliyunCrypto.encrypt(BaseDataKeyProvider provider,
byte[] plainText,
Map<String,String> encryptionContext)
|
CryptoResult<OutputStream> |
AliyunCrypto.encrypt(BaseDataKeyProvider provider,
InputStream inputStream,
OutputStream outputStream)
|
CryptoResult<OutputStream> |
AliyunCrypto.encrypt(BaseDataKeyProvider provider,
InputStream inputStream,
OutputStream outputStream,
Map<String,String> encryptionContext)
|
| Modifier and Type | Method and Description |
|---|---|
CipherMaterial |
EncryptHandler.encryptStream(InputStream inputStream,
OutputStream outputStream,
BaseDataKeyProvider provider,
EncryptionMaterial encryptionMaterial)
对
InputStream 输入流进行加密,并将加密结果写入 OutputStream |
CipherMaterial |
DefaultEncryptHandler.encryptStream(InputStream inputStream,
OutputStream outputStream,
BaseDataKeyProvider provider,
EncryptionMaterial encryptionMaterial) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExternalStoreDataKeyProvider
|
class |
DefaultDataKeyProvider
BaseDataKeyProvider 的一个实现,所有加密信息都保存在密文中 |
class |
SecretManagerDataKeyProvider
AbstractExternalStoreDataKeyProvider 的SecretManager实现
dataKeyName 将作为secretName标识一个数据密钥 |
Copyright © 2020. All rights reserved.