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