Enum Encryption
- java.lang.Object
-
- java.lang.Enum<Encryption>
-
- org.apache.tomcat.util.net.openssl.ciphers.Encryption
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Encryption>
public enum Encryption extends java.lang.Enum<Encryption>
Enumerates the encryption algorithms supported by OpenSSL cipher suites.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES128AES with 128-bit key.AES128CCMAES with 128-bit key in CCM mode.AES128CCM8AES with 128-bit key in CCM mode with 8-byte tag.AES128GCMAES with 128-bit key in GCM mode.AES256AES with 256-bit key.AES256CCMAES with 256-bit key in CCM mode.AES256CCM8AES with 256-bit key in CCM mode with 8-byte tag.AES256GCMAES with 256-bit key in GCM mode.ARIA128GCMARIA with 128-bit key in GCM mode.ARIA256GCMARIA with 256-bit key in GCM mode.CAMELLIA128Camellia with 128-bit key.CAMELLIA256Camellia with 256-bit key.CHACHA20POLY1305ChaCha20-Poly1305 AEAD cipher.DESDES encryption.eGOST2814789CNTGOST 28147-89 with_CNT keyed hash.eNULLNo encryption (NULL cipher).FZAFZA encryption.IDEAIDEA encryption.RC2RC2 encryption.RC4RC4 stream cipher.SEEDSEED encryption.TRIPLE_DESTriple DES encryption.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncryptionvalueOf(java.lang.String name)Returns 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 Detail
-
AES128
public static final Encryption AES128
AES with 128-bit key.
-
AES128CCM
public static final Encryption AES128CCM
AES with 128-bit key in CCM mode.
-
AES128CCM8
public static final Encryption AES128CCM8
AES with 128-bit key in CCM mode with 8-byte tag.
-
AES128GCM
public static final Encryption AES128GCM
AES with 128-bit key in GCM mode.
-
AES256
public static final Encryption AES256
AES with 256-bit key.
-
AES256CCM
public static final Encryption AES256CCM
AES with 256-bit key in CCM mode.
-
AES256CCM8
public static final Encryption AES256CCM8
AES with 256-bit key in CCM mode with 8-byte tag.
-
AES256GCM
public static final Encryption AES256GCM
AES with 256-bit key in GCM mode.
-
ARIA128GCM
public static final Encryption ARIA128GCM
ARIA with 128-bit key in GCM mode.
-
ARIA256GCM
public static final Encryption ARIA256GCM
ARIA with 256-bit key in GCM mode.
-
CAMELLIA256
public static final Encryption CAMELLIA256
Camellia with 256-bit key.
-
CAMELLIA128
public static final Encryption CAMELLIA128
Camellia with 128-bit key.
-
CHACHA20POLY1305
public static final Encryption CHACHA20POLY1305
ChaCha20-Poly1305 AEAD cipher.
-
TRIPLE_DES
public static final Encryption TRIPLE_DES
Triple DES encryption.
-
DES
public static final Encryption DES
DES encryption.
-
IDEA
public static final Encryption IDEA
IDEA encryption.
-
eGOST2814789CNT
public static final Encryption eGOST2814789CNT
GOST 28147-89 with_CNT keyed hash.
-
SEED
public static final Encryption SEED
SEED encryption.
-
FZA
public static final Encryption FZA
FZA encryption.
-
RC4
public static final Encryption RC4
RC4 stream cipher.
-
RC2
public static final Encryption RC2
RC2 encryption.
-
eNULL
public static final Encryption eNULL
No encryption (NULL cipher).
-
-
Method Detail
-
values
public static Encryption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Encryption c : Encryption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Encryption valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-