public enum RsaType extends Enum<RsaType>
| 限定符和类型 | 字段和说明 |
|---|---|
String |
keyAlgorithm
KeyFactory算法,默认RSA
|
int |
keySize
秘钥长度
|
int |
maxDecryptBlock
RSA最大解密块大小
|
int |
maxEncryptBlock
加密块大小(大于则需要分段加密)
|
String |
signatureAlgorithm
加签算法
|
public static final RsaType RSA
public static final RsaType RSA2
public String keyAlgorithm
public int keySize
public int maxEncryptBlock
public int maxDecryptBlock
public String signatureAlgorithm
public static RsaType[] values()
for (RsaType c : RsaType.values()) System.out.println(c);
public static RsaType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2024. All rights reserved.