public enum PaddingMethod extends Enum<PaddingMethod>
| Enum Constant and Description |
|---|
ANSI_X9_23 |
ISO_10126 |
None |
OAEP |
PKCS1_v1_5 |
PKCS5 |
PSS |
SSL3 |
X9_31 |
Zeros |
| Modifier and Type | Method and Description |
|---|---|
static PaddingMethod |
from(int code) |
static PaddingMethod |
from(String name) |
int |
getCode() |
String |
toString() |
static PaddingMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaddingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaddingMethod None
public static final PaddingMethod OAEP
public static final PaddingMethod PKCS5
public static final PaddingMethod SSL3
public static final PaddingMethod Zeros
public static final PaddingMethod ANSI_X9_23
public static final PaddingMethod ISO_10126
public static final PaddingMethod PKCS1_v1_5
public static final PaddingMethod X9_31
public static final PaddingMethod PSS
public static PaddingMethod[] values()
for (PaddingMethod c : PaddingMethod.values()) System.out.println(c);
public static PaddingMethod 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<PaddingMethod>public static PaddingMethod from(String name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static PaddingMethod from(int code) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2022. All rights reserved.