public class CryptMode 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 CryptMode.VALUE, or instantiate extended enum values with CryptMode.fromValue(VALUE). This class cannot be used with the Java switch() construction.
Modifier and Type | Field and Description |
---|---|
static CryptMode |
CBC |
static CryptMode |
CBCNOPAD |
static CryptMode |
CCM |
static CryptMode |
CFB |
static CryptMode |
CTR |
static CryptMode |
ECB |
static CryptMode |
FF1 |
static CryptMode |
FPE |
static CryptMode |
GCM |
static CryptMode |
KW |
static CryptMode |
KWP |
static CryptMode |
OAEP_MGF1_SHA1 |
static CryptMode |
OAEP_MGF1_SHA256 |
static CryptMode |
OAEP_MGF1_SHA384 |
static CryptMode |
OAEP_MGF1_SHA512 |
static CryptMode |
OFB |
static CryptMode |
PKCS1_V15 |
Modifier and Type | Method and Description |
---|---|
static CryptMode |
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 CryptMode[] |
values()
Return an array containing the known enumeration values.
|
public static final CryptMode ECB
public static final CryptMode CBC
public static final CryptMode CBCNOPAD
public static final CryptMode CFB
public static final CryptMode CTR
public static final CryptMode OFB
public static final CryptMode GCM
public static final CryptMode CCM
public static final CryptMode PKCS1_V15
public static final CryptMode OAEP_MGF1_SHA1
public static final CryptMode OAEP_MGF1_SHA256
public static final CryptMode OAEP_MGF1_SHA384
public static final CryptMode OAEP_MGF1_SHA512
public static final CryptMode FPE
public static final CryptMode KW
public static final CryptMode KWP
public static final CryptMode FF1
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 CryptMode[] 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 CryptMode 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 CryptMode.VALUE members if you want to use a defined enumeration value.
Copyright © 2017-2023 Fortanix Inc. All Rights Reserved