public enum OperationMode extends Enum<OperationMode>
enum
exists to provide Shiro end-users type-safety when declaring an operation mode. This helps reduce
error by providing a compile-time mechanism to specify a mode and guarantees a valid name that will be
recognized by an underlying JCA Provider.
Enum Constant and Description |
---|
CBC
Cipher-block Chaining mode, defined in FIPS
PUB 81.
|
CCM
Counter with CBC-MAC mode* - for block ciphers with
128 bit block-size only.
|
CFB
|
CTR
Counter Mode, aka
Integer Counter Mode (ICM) and Segmented Integer Counter (SIC).
|
EAX
EAX Mode*.
|
ECB
Electronic
Codebook mode, defined in FIPS PUB 81.
|
GCM
Galois/Counter mode* - for block ciphers with 128
bit block-size only.
|
NONE
No mode.
|
OCB
Offset Codebook mode*.
|
OFB
Output
Feedback mode, defined in FIPS PUB 81.
|
PCBC
|
Modifier and Type | Method and Description |
---|---|
static OperationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationMode CBC
public static final OperationMode CCM
EAX
mode.
*THIS IS A NON-STANDARD MODE. It is not guaranteed to be supported across JDK installations. You must
ensure you have a JCA Provider that can support this cipher operation mode.
Bouncy Castle may be one such provider.public static final OperationMode CFB
public static final OperationMode CTR
OFB
and updates the input block as a counter.
This is a standard JDK operation mode and should be supported by all JDK environments.public static final OperationMode EAX
OCB
and has capabilities beyond what CCM
can provide.
*THIS IS A NON-STANDARD MODE. It is not guaranteed to be supported across JDK installations. You must
ensure you have a JCA Provider that can support this cipher operation mode.
Bouncy Castle may be one such provider.public static final OperationMode ECB
public static final OperationMode GCM
public static final OperationMode NONE
public static final OperationMode OCB
EAX
mode.
*THIS IS A NON-STANDARD MODE. It is not guaranteed to be supported across JDK installations. You must
ensure you have a JCA Provider that can support this cipher operation mode.
Bouncy Castle may be one such provider.public static final OperationMode OFB
public static final OperationMode PCBC
public static OperationMode[] values()
for (OperationMode c : OperationMode.values()) System.out.println(c);
public static OperationMode 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 © 2004–2020 The Apache Software Foundation. All rights reserved.