public enum Padding extends Enum<Padding>
| Enum Constant and Description |
|---|
ISO10126Padding |
NoPadding
无补码
|
OAEPPadding |
PKCS1Padding |
PKCS5Padding |
SSL3Padding |
ZeroPadding
0补码,即不满block长度时使用0填充
|
| Modifier and Type | Method and Description |
|---|---|
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 NoPadding
public static final Padding ZeroPadding
public static final Padding ISO10126Padding
public static final Padding OAEPPadding
public static final Padding PKCS1Padding
public static final Padding PKCS5Padding
public static final Padding SSL3Padding
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 nullCopyright © 2020. All rights reserved.