public enum Padding extends Enum<Padding>
Crypt| Enum Constant and Description |
|---|
NO_PADDING
No padding
|
PKCS5_PADDING
PKCS5 padding
|
| Modifier and Type | Field and Description |
|---|---|
static Padding |
DEFAULT_PADDING_ALGORITHM
PKCS5 Padding, the default algorithm for padding
|
| Modifier and Type | Method and Description |
|---|---|
static Padding |
forShortcut(String shortcut)
Finds the Padding object for the given short cut
|
String |
getShortcut() |
static Padding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Padding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Padding PKCS5_PADDING
public static final Padding NO_PADDING
public static final Padding DEFAULT_PADDING_ALGORITHM
public static Padding[] values()
for (Padding c : Padding.values()) System.out.println(c);
public static Padding 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 Padding forShortcut(@Nonnull String shortcut)
shortcut - the shortcut used by the java APICryptoInitializationProblem - if shortcut is unknownCopyright © 2014 Michael Bock. All rights reserved.