public enum CipherMode extends Enum<CipherMode>
Enum Constant and Description |
---|
DECRYPT
解密模式
|
ENCRYPT
加密模式
|
UNWRAP
拆包模式
|
WRAP
包装模式
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
获取枚举值对应的int表示
|
static CipherMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CipherMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CipherMode ENCRYPT
public static final CipherMode DECRYPT
public static final CipherMode WRAP
public static final CipherMode UNWRAP
public static CipherMode[] values()
for (CipherMode c : CipherMode.values()) System.out.println(c);
public static CipherMode 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 getValue()
Copyright © 2025. All rights reserved.