Enum Encryption
- All Implemented Interfaces:
Serializable, Comparable<Encryption>, java.lang.constant.Constable
Enumerates the encryption algorithms supported by OpenSSL cipher suites.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAES with 128-bit key.AES with 128-bit key in CCM mode.AES with 128-bit key in CCM mode with 8-byte tag.AES with 128-bit key in GCM mode.AES with 256-bit key.AES with 256-bit key in CCM mode.AES with 256-bit key in CCM mode with 8-byte tag.AES with 256-bit key in GCM mode.ARIA with 128-bit key in GCM mode.ARIA with 256-bit key in GCM mode.Camellia with 128-bit key.Camellia with 256-bit key.ChaCha20-Poly1305 AEAD cipher.DES encryption.GOST 28147-89 with_CNT keyed hash.No encryption (NULL cipher).FZA encryption.IDEA encryption.RC2 encryption.RC4 stream cipher.SEED encryption.Triple DES encryption. -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionReturns the enum constant of this type with the specified name.static Encryption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AES128
AES with 128-bit key. -
AES128CCM
AES with 128-bit key in CCM mode. -
AES128CCM8
AES with 128-bit key in CCM mode with 8-byte tag. -
AES128GCM
AES with 128-bit key in GCM mode. -
AES256
AES with 256-bit key. -
AES256CCM
AES with 256-bit key in CCM mode. -
AES256CCM8
AES with 256-bit key in CCM mode with 8-byte tag. -
AES256GCM
AES with 256-bit key in GCM mode. -
ARIA128GCM
ARIA with 128-bit key in GCM mode. -
ARIA256GCM
ARIA with 256-bit key in GCM mode. -
CAMELLIA256
Camellia with 256-bit key. -
CAMELLIA128
Camellia with 128-bit key. -
CHACHA20POLY1305
ChaCha20-Poly1305 AEAD cipher. -
TRIPLE_DES
Triple DES encryption. -
DES
DES encryption. -
IDEA
IDEA encryption. -
eGOST2814789CNT
GOST 28147-89 with_CNT keyed hash. -
SEED
SEED encryption. -
FZA
FZA encryption. -
RC4
RC4 stream cipher. -
RC2
RC2 encryption. -
eNULL
No encryption (NULL cipher).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-