public enum CryptoType extends Enum<CryptoType>
| Enum Constant and Description |
|---|
Asymmetric
非对称加密算法
|
Symmetric
对称加密算法
|
| Modifier and Type | Method and Description |
|---|---|
static CryptoType |
get(String name)
根据枚举名获取枚举
|
static CryptoType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CryptoType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CryptoType Symmetric
public static final CryptoType Asymmetric
public static CryptoType[] values()
for (CryptoType c : CryptoType.values()) System.out.println(c);
public static CryptoType 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 static CryptoType get(String name)
name - 枚举名Copyright © 2021–2022 EasyJ????. All rights reserved.