public enum CryptoPrimitive extends Enum<CryptoPrimitive>
Enum Constant and Description |
---|
BLOCK_CIPHER
对称原语:块密码
|
KEY_AGREEMENT
非对称原语:密钥协商和密钥分发
|
KEY_ENCAPSULATION
不对称原语:密钥封装机制
|
KEY_WRAP
对称原语:键包装
|
MAC
对称原语:消息认证码
|
MESSAGE_DIGEST
散列函数
|
PUBLIC_KEY_ENCRYPTION
不对称原语:公钥加密
|
SECURE_RANDOM
加密随机数发生器
|
SIGNATURE
不对称原语:签名方案
|
STREAM_CIPHER
对称原语:流密码
|
Modifier and Type | Method and Description |
---|---|
static CryptoPrimitive |
valueOf(String name)
以指定的名称返回此类型的枚举常量。
|
static CryptoPrimitive[] |
values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。
|
public static final CryptoPrimitive MESSAGE_DIGEST
public static final CryptoPrimitive SECURE_RANDOM
public static final CryptoPrimitive BLOCK_CIPHER
public static final CryptoPrimitive STREAM_CIPHER
public static final CryptoPrimitive MAC
public static final CryptoPrimitive KEY_WRAP
public static final CryptoPrimitive PUBLIC_KEY_ENCRYPTION
public static final CryptoPrimitive SIGNATURE
public static final CryptoPrimitive KEY_ENCAPSULATION
public static final CryptoPrimitive KEY_AGREEMENT
public static CryptoPrimitive[] values()
for (CryptoPrimitive c : CryptoPrimitive.values())
System.out.println(c);
public static CryptoPrimitive valueOf(String name)
name
- 要返回的枚举常量的名称。
IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
NullPointerException
- 如果参数为空