public enum KeyOperation extends Enum<KeyOperation>
Enum Constant and Description |
---|
DECRYPT
Use Key to decrypt content and validate decryption, if applicable.
|
DERIVE_BITS
Use Key to derive bits not to be used as a key.
|
DERIVE_KEY
Use Key to derive key.
|
ENCRYPT
Use Key to encrypt content.
|
SIGN
Use Key to compute digital signature or MAC.
|
UNWRAP_KEY
Use Key to decrypt key and validate decryption, if applicable.
|
VERIFY
Use Key to verify digital signature or MAC.
|
WRAP_KEY
Use Key to encrypt key.
|
Modifier and Type | Method and Description |
---|---|
static KeyOperation |
getKeyOperations(String name)
Get the KeyOperation.
|
String |
getName()
Get the Value of the KeyOperation.
|
String |
toString()
Prints the KeyOperation value.
|
static KeyOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyOperation SIGN
public static final KeyOperation VERIFY
public static final KeyOperation ENCRYPT
public static final KeyOperation DECRYPT
public static final KeyOperation WRAP_KEY
public static final KeyOperation UNWRAP_KEY
public static final KeyOperation DERIVE_KEY
public static final KeyOperation DERIVE_BITS
public static KeyOperation[] values()
for (KeyOperation c : KeyOperation.values()) System.out.println(c);
public static KeyOperation 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 getName()
public static KeyOperation getKeyOperations(String name)
name
- the string representing the KeyOperation to getpublic String toString()
toString
in class Enum<KeyOperation>
Copyright © 2010-2018, ForgeRock All Rights Reserved.