public enum EncryptAlgorithmEnum extends Enum<EncryptAlgorithmEnum>
Enum Constant and Description |
---|
AES
使用AES算法进行数据对称加密
|
CUSTOM
使用自定义算法(如:加密机)进行数据对称加密
|
SM4
使用SM4算法进行数据对称加密
|
Modifier and Type | Method and Description |
---|---|
abstract SymmetricCrypto |
getSymmetricCrypto(String dataEncryptKey)
获得对称加密算法实例
|
static EncryptAlgorithmEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncryptAlgorithmEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncryptAlgorithmEnum AES
public static final EncryptAlgorithmEnum SM4
public static final EncryptAlgorithmEnum CUSTOM
public static EncryptAlgorithmEnum[] values()
for (EncryptAlgorithmEnum c : EncryptAlgorithmEnum.values()) System.out.println(c);
public static EncryptAlgorithmEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract SymmetricCrypto getSymmetricCrypto(String dataEncryptKey)
dataEncryptKey
- 数据加密密钥Copyright © 2022 Pivotal Software, Inc.. All rights reserved.