public enum SecretDataType extends Enum<SecretDataType>
| Enum Constant and Description |
|---|
FunctionalKey |
FunctionalKeyShare |
Password |
Seed |
| Modifier and Type | Method and Description |
|---|---|
static SecretDataType |
from(int code) |
static SecretDataType |
from(String name) |
int |
getCode() |
String |
toString() |
static SecretDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecretDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecretDataType Password
public static final SecretDataType Seed
public static final SecretDataType FunctionalKey
public static final SecretDataType FunctionalKeyShare
public static SecretDataType[] values()
for (SecretDataType c : SecretDataType.values()) System.out.println(c);
public static SecretDataType 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 getCode()
public String toString()
toString in class Enum<SecretDataType>public static SecretDataType from(String name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static SecretDataType from(int code) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2022. All rights reserved.