public enum CipherUsage extends Enum<CipherUsage>
Enumeration for representing types of operation.
Modifier and Type | Method and Description |
---|---|
static CipherUsage |
getById(int id)
Gets a usage by its Id.
|
static CipherUsage |
getByString(String name)
Gets a usage by its name.
|
int |
getId() |
String |
getUsageString() |
static CipherUsage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CipherUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CipherUsage SIGN
public static final CipherUsage ENCRYPT
public static CipherUsage[] values()
for (CipherUsage c : CipherUsage.values()) System.out.println(c);
public static CipherUsage 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 getId()
public String getUsageString()
public static CipherUsage getByString(String name)
Gets a usage by its name.
name
- the name to look uppublic static CipherUsage getById(int id)
Gets a usage by its Id.
id
- the id to look upCopyright © 2023. All rights reserved.