public enum BlockCipherMode extends Enum<BlockCipherMode>
| Enum Constant and Description |
|---|
AEAD |
CBC |
CBC_MAC |
CCM |
CFB |
CMAC |
CTR |
ECB |
GCM |
OFB |
PCBC |
X9_102_AESKW |
X9_102_AKW1 |
X9_102_AKW2 |
X9_102_TDKW |
XTS |
| Modifier and Type | Method and Description |
|---|---|
static BlockCipherMode |
from(int code) |
static BlockCipherMode |
from(String name) |
int |
getCode() |
String |
toString() |
static BlockCipherMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockCipherMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockCipherMode CBC
public static final BlockCipherMode ECB
public static final BlockCipherMode PCBC
public static final BlockCipherMode CFB
public static final BlockCipherMode OFB
public static final BlockCipherMode CTR
public static final BlockCipherMode CMAC
public static final BlockCipherMode CCM
public static final BlockCipherMode GCM
public static final BlockCipherMode CBC_MAC
public static final BlockCipherMode XTS
public static final BlockCipherMode X9_102_AESKW
public static final BlockCipherMode X9_102_TDKW
public static final BlockCipherMode X9_102_AKW1
public static final BlockCipherMode X9_102_AKW2
public static final BlockCipherMode AEAD
public static BlockCipherMode[] values()
for (BlockCipherMode c : BlockCipherMode.values()) System.out.println(c);
public static BlockCipherMode 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 getCode()
public String toString()
toString in class Enum<BlockCipherMode>public static BlockCipherMode from(String name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static BlockCipherMode from(int code) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2023. All rights reserved.