public enum BlockMode extends Enum<BlockMode>
Crypt| Enum Constant and Description |
|---|
CIPHER_BLOCK_CHAIN_MODE
Cipher block chain mode
|
CIPHER_FEEDBACK_MODE
Cipher feedback mode
|
ELECTRONIC_CODE_BOOK_MODE
Electronic code book mode
|
OUTPUT_FEEDBACK_MODE
Output feedback mode
|
| Modifier and Type | Field and Description |
|---|---|
static BlockMode |
DEFAULT_BLOCK_CHAIN_MODE
Cipher block chaining mode, the default algorithm for block chain mode
|
| Modifier and Type | Method and Description |
|---|---|
static BlockMode |
forShortcut(String shortcut)
Finds the BlockMode object for the given short cut
|
String |
getShortcut() |
static BlockMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockMode ELECTRONIC_CODE_BOOK_MODE
public static final BlockMode CIPHER_BLOCK_CHAIN_MODE
public static final BlockMode CIPHER_FEEDBACK_MODE
public static final BlockMode OUTPUT_FEEDBACK_MODE
public static final BlockMode DEFAULT_BLOCK_CHAIN_MODE
public static BlockMode[] values()
for (BlockMode c : BlockMode.values()) System.out.println(c);
public static BlockMode 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 null@Nonnull public static BlockMode forShortcut(@Nonnull String shortcut)
shortcut - the shortcut used by the java APICryptoInitializationProblem - if shortcut is unknownCopyright © 2014 Michael Bock. All rights reserved.