public enum Mode extends Enum<Mode>
| Modifier and Type | Class and Description |
|---|---|
static class |
Mode.Cipher
Cipher模式的枚举封装
|
| Enum Constant and Description |
|---|
CBC
密码分组连接模式(Cipher Block Chaining)
|
CFB
密文反馈模式(Cipher Feedback)
|
CTR
计数器模式(A simplification of OFB)
|
CTS
Cipher Text Stealing
|
ECB
电子密码本模式(Electronic CodeBook)
|
NONE
无模式
|
OFB
输出反馈模式(Output Feedback)
|
PCBC
Propagating Cipher Block
|
| Modifier and Type | Method and Description |
|---|---|
static Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mode NONE
public static final Mode CBC
public static final Mode CFB
public static final Mode CTR
public static final Mode CTS
public static final Mode ECB
public static final Mode OFB
public static final Mode PCBC
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode 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 © 2021. All rights reserved.