1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| package org.dromara.cryptapi.core;
|
| import lombok.Data;
| import org.dromara.cryptapi.enums.EncodeType;
|
| /**
| * 加密上下文 用于encryptor传递必要的参数。
| *
| * @author 老马
| * @version 4.6.0
| */
| @Data
| public class EncryptContext {
|
| /**
| * 安全秘钥
| */
| private String password;
|
| /**
| * 公钥
| */
| private String publicKey;
|
| /**
| * 私钥
| */
| private String privateKey;
|
| /**
| * 编码方式,base64/hex
| */
| private EncodeType encode;
|
| }
|
|