public enum KeyType extends Enum<KeyType>
Enum Constant and Description |
---|
PrivateKey
私钥
|
PublicKey
公钥
|
SecretKey
密钥
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
获取枚举值对应的int表示
|
static KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyType PublicKey
public static final KeyType PrivateKey
public static final KeyType SecretKey
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType 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 int getValue()
Copyright © 2024. All rights reserved.