public enum TextCryptoType extends Enum<TextCryptoType>
| 枚举常量和说明 |
|---|
ex_rsa
扩展RSA非对称加密,主要是为了配合前端JS加密传输,使用程序自动生成的密钥对
|
none
未加密,直接返回输入的文本
|
rsa
RSA非对称加密,通过配置参数这是证书
|
sm2
国密非对称加密
|
sm2toplain
国密非对称加密,主要用于用户密码提交,解密后得到明文
|
sm2tosm3
国密非对称加密,主要用于用户密码提交,解密后得到采用SM3加密后的文本
|
sm4
国密对称加密
|
public static final TextCryptoType none
public static final TextCryptoType rsa
public static final TextCryptoType ex_rsa
public static final TextCryptoType sm2
public static final TextCryptoType sm4
public static final TextCryptoType sm2tosm3
public static final TextCryptoType sm2toplain
public static TextCryptoType[] values()
for (TextCryptoType c : TextCryptoType.values()) System.out.println(c);
public static TextCryptoType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2023. All rights reserved.