public enum Padding extends Enum<Padding>
| Enum Constant and Description |
|---|
NoPadding
Don't change the order of this enum value.
|
PKCS5Padding
Don't change the order of this enum value.
|
| Modifier and Type | Method and Description |
|---|---|
static Padding |
get(String padding)
Gets a Padding.
|
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 PKCS5Padding
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 nullpublic static Padding get(String padding) throws NoSuchPaddingException
padding - the padding name.NoSuchPaddingException - if the algorithm is not supported.Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.