public static enum Constants.EncryptionMode extends java.lang.Enum<Constants.EncryptionMode>
| Enum Constant and Description |
|---|
AES_128_ECB
2: 128-bit AES encryption, ECB mode.
|
AES_128_GCM
5: 128-bit AES encryption, GCM mode.
|
AES_128_GCM2
7: (Default) 128-bit AES encryption, GCM mode.
|
AES_128_XTS
1: 128-bit AES encryption, XTS mode.
|
AES_256_GCM
6: 256-bit AES encryption, GCM mode.
|
AES_256_GCM2
8: 256-bit AES encryption, GCM mode.
|
AES_256_XTS
3: 256-bit AES encryption, XTS mode.
|
MODE_END
Enumerator boundary.
|
SM4_128_ECB
4: 128-bit SM4 encryption, ECB mode.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
value |
| Modifier and Type | Method and Description |
|---|---|
static Constants.EncryptionMode |
fromInt(int value) |
int |
getValue() |
static Constants.EncryptionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.EncryptionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.EncryptionMode AES_128_XTS
public static final Constants.EncryptionMode AES_128_ECB
public static final Constants.EncryptionMode AES_256_XTS
public static final Constants.EncryptionMode SM4_128_ECB
public static final Constants.EncryptionMode AES_128_GCM
public static final Constants.EncryptionMode AES_256_GCM
public static final Constants.EncryptionMode AES_128_GCM2
public static final Constants.EncryptionMode AES_256_GCM2
public static final Constants.EncryptionMode MODE_END
public static Constants.EncryptionMode[] values()
for (Constants.EncryptionMode c : Constants.EncryptionMode.values()) System.out.println(c);
public static Constants.EncryptionMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public static Constants.EncryptionMode fromInt(int value)