| Package | Description |
|---|---|
| com.aliyun.encryptionsdk.handler | |
| com.aliyun.encryptionsdk.model | |
| com.aliyun.encryptionsdk.provider | |
| com.aliyun.encryptionsdk.provider.dataKey |
| Modifier and Type | Method and Description |
|---|---|
CipherMaterial |
FormatHandler.deserialize(byte[] cipherData) |
CipherMaterial |
Asn1FormatHandler.deserialize(byte[] cipherData) |
CipherMaterial |
EncryptHandler.encrypt(byte[] plaintext,
EncryptionMaterial encryptionMaterial)
对一个明文字节数组进行加密
|
CipherMaterial |
DefaultEncryptHandler.encrypt(byte[] plaintext,
EncryptionMaterial encryptionMaterial) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
EncryptHandler.decrypt(CipherMaterial cipherMaterial,
DecryptionMaterial decryptionMaterial)
对一个加密结果进行解密
|
byte[] |
DefaultEncryptHandler.decrypt(CipherMaterial cipherMaterial,
DecryptionMaterial decryptionMaterial) |
byte[] |
FormatHandler.serialize(CipherMaterial cipherMaterial) |
byte[] |
Asn1FormatHandler.serialize(CipherMaterial cipherMaterial) |
| Modifier and Type | Method and Description |
|---|---|
CipherMaterial |
CryptoResult.getCipherMaterial() |
| Constructor and Description |
|---|
CryptoResult(T result,
CipherMaterial cipherMaterial) |
| Modifier and Type | Method and Description |
|---|---|
abstract CipherMaterial |
BaseDataKeyProvider.getCipherMaterial(byte[] cipherText)
通过密文或数据密钥关键字获取数据密钥并生成密码材料
|
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
BaseDataKeyProvider.processCipherMaterial(CipherMaterial cipherMaterial)
处理密码材料生成字节数组,字节数组内容可能包含:
1.
CipherMaterial 的所有内容
2.CipherMaterial 中的 CipherBody 部分(CipherHeader 部分由
AbstractExternalStoreDataKeyProvider 的实现自行处理) |
| Modifier and Type | Method and Description |
|---|---|
CipherMaterial |
AbstractExternalStoreDataKeyProvider.getCipherMaterial(byte[] cipherText) |
CipherMaterial |
DefaultDataKeyProvider.getCipherMaterial(byte[] cipherText) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
AbstractExternalStoreDataKeyProvider.processCipherMaterial(CipherMaterial cipherMaterial) |
byte[] |
DefaultDataKeyProvider.processCipherMaterial(CipherMaterial cipherMaterial) |
Copyright © 2020. All rights reserved.