提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.common.enums; |
X |
2 |
|
|
3 |
import com.dl.common.encrypt.encryptor.*; |
|
4 |
import lombok.AllArgsConstructor; |
|
5 |
import lombok.Getter; |
|
6 |
|
|
7 |
/** |
|
8 |
* 算法名称 |
|
9 |
* |
|
10 |
* @author 老马 |
|
11 |
* @version 4.6.0 |
|
12 |
*/ |
|
13 |
@Getter |
|
14 |
@AllArgsConstructor |
|
15 |
public enum AlgorithmType { |
|
16 |
|
|
17 |
/** |
|
18 |
* 默认走yml配置 |
|
19 |
*/ |
|
20 |
DEFAULT(null), |
|
21 |
|
|
22 |
/** |
|
23 |
* base64 |
|
24 |
*/ |
|
25 |
BASE64(Base64Encryptor.class), |
|
26 |
|
|
27 |
/** |
|
28 |
* aes |
|
29 |
*/ |
|
30 |
AES(AesEncryptor.class), |
|
31 |
|
|
32 |
/** |
|
33 |
* rsa |
|
34 |
*/ |
|
35 |
RSA(RsaEncryptor.class), |
|
36 |
|
|
37 |
/** |
|
38 |
* sm2 |
|
39 |
*/ |
|
40 |
SM2(Sm2Encryptor.class), |
|
41 |
|
|
42 |
/** |
|
43 |
* sm4 |
|
44 |
*/ |
|
45 |
SM4(Sm4Encryptor.class); |
|
46 |
|
|
47 |
private final Class<? extends AbstractEncryptor> clazz; |
|
48 |
} |