public enum AsymmetricAlgorithm extends Enum<AsymmetricAlgorithm>
Enum Constant and Description |
---|
RSA
RSA算法
|
RSA_ECB
RSA算法,此算法用了默认补位方式为RSA/ECB/NoPadding
|
RSA_ECB_PKCS1
RSA算法,此算法用了默认补位方式为RSA/ECB/PKCS1Padding
|
RSA_None
RSA算法,此算法用了RSA/None/NoPadding
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
获取算法字符串表示,区分大小写
|
static AsymmetricAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AsymmetricAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsymmetricAlgorithm RSA
public static final AsymmetricAlgorithm RSA_ECB_PKCS1
public static final AsymmetricAlgorithm RSA_ECB
public static final AsymmetricAlgorithm RSA_None
public static AsymmetricAlgorithm[] values()
for (AsymmetricAlgorithm c : AsymmetricAlgorithm.values()) System.out.println(c);
public static AsymmetricAlgorithm 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 String getValue()
Copyright © 2024. All rights reserved.