public class KeyOperations extends Object
This class functions similarly to a Java enum, but allows client software to operate with a server that provides enumeration values that aren't known by the client. Client software can use standard enum values with KeyOperations.VALUE, or instantiate extended enum values with KeyOperations.fromValue(VALUE). This class cannot be used with the Java switch() construction.
Modifier and Type | Field and Description |
---|---|
static KeyOperations |
AGREEKEY |
static KeyOperations |
APPMANAGEABLE |
static KeyOperations |
DECRYPT |
static KeyOperations |
DERIVEKEY |
static KeyOperations |
ENCRYPT |
static KeyOperations |
EXPORT |
static KeyOperations |
MACGENERATE |
static KeyOperations |
MACVERIFY |
static KeyOperations |
SIGN |
static KeyOperations |
UNWRAPKEY |
static KeyOperations |
VERIFY |
static KeyOperations |
WRAPKEY |
Modifier and Type | Method and Description |
---|---|
static KeyOperations |
fromValue(String val)
Intantiate an enumeration member from a value.
|
String |
getValue()
Get the serialized value of this enumeration member.
|
String |
toString()
Returns the serialized value of this enumeration member, converted to a
string.
|
static KeyOperations[] |
values()
Return an array containing the known enumeration values.
|
public static final KeyOperations SIGN
public static final KeyOperations VERIFY
public static final KeyOperations ENCRYPT
public static final KeyOperations DECRYPT
public static final KeyOperations WRAPKEY
public static final KeyOperations UNWRAPKEY
public static final KeyOperations DERIVEKEY
public static final KeyOperations AGREEKEY
public static final KeyOperations MACGENERATE
public static final KeyOperations MACVERIFY
public static final KeyOperations EXPORT
public static final KeyOperations APPMANAGEABLE
public String getValue()
public String toString()
For String enumerations, this will return the same value as getValue(). For integer enumerations, it will return the integer value converted to a string.
public static KeyOperations[] values()
This method returns all enumeration values known at the time the method is invoked. Since the enumeration is extensible, new enumeration values will be added as they are encountered (usually because new enumeration values were returned by the server). This can result in two calls to values() returning arrays of different length.
public static KeyOperations fromValue(String val)
This method is normally invoked internally by the library to deserialize enumeration values. It is not normally necessary to call this method directly in client software. You can use one of the KeyOperations.VALUE members if you want to use a defined enumeration value.
Copyright © 2017-2023 Fortanix Inc. All Rights Reserved