public enum KeyUse extends Enum<KeyUse>
| Enum Constant and Description |
|---|
ENC
Use Key as a encryption key.
|
SIG
Use Key as a signature key.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyUse |
getKeyUse(String keyUse)
Get the KeyUse.
|
String |
toString()
Prints the KeyUse value.
|
String |
value()
Get the Value of the KeyUse.
|
static KeyUse |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyUse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyUse SIG
public static final KeyUse ENC
public static KeyUse[] values()
for (KeyUse c : KeyUse.values()) System.out.println(c);
public static KeyUse 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 value()
public static KeyUse getKeyUse(String keyUse)
keyUse - the string representing the KeyUse to getCopyright © 2025 Open Identity Platform Community. All rights reserved.