Package org.wildfly.security.ssl
Enum Encryption
- java.lang.Object
-
- java.lang.Enum<Encryption>
-
- org.wildfly.security.ssl.Encryption
-
- All Implemented Interfaces:
Serializable,Comparable<Encryption>
public enum Encryption extends Enum<Encryption>
The encryption type for SSL/TLS cipher suite selection.- Author:
- David M. Lloyd
-
-
Enum Constant Summary
Enum Constants Enum Constant Description _3DESTriple-DES encryption.AES128AES encryption with 128-bit keys.AES128CCMAES encryption with 128-bit keys in CBC-MAC Mode (CCM).AES128CCM8AES encryption with 128-bit keys in CBC-MAC Mode (CCM) with an 8-Octet Integrity Check Value.AES128GCMAES encryption with 128-bit keys in Galois counter mode (GCM).AES256AES encryption with 256-bit keys.AES256CCMAES encryption with 256-bit keys in CBC-MAC Mode (CCM).AES256CCM8AES encryption with 256-bit keys in CBC-MAC Mode (CCM) with an 8-Octet Integrity Check Value.AES256GCMAES encryption with 256-bit keys in Galois counter mode (GCM).ARIA128ARIA encryption with 128-bit.ARIA128GCMARIA encryption with 128-bit keys in Galois counter mode (GCM).ARIA256ARIA encryption with 256-bit keys.ARIA256GCMARIA encryption with 256-bit keys in Galois counter mode (GCM).CAMELLIA128Camellia encryption with 128-bit keys.CAMELLIA256Camellia encryption with 256-bit keys.CHACHA20ChaCha20 encryption.DESSimple DES encryption.FZAFortezza encryption.GOST2814789CNTGOST 28147-89 encryption as defined in RFC 5830.IDEAIDEA encryption.NULLNo encryption.RC2RC2 encryption.RC4RC4 encryption.SEEDSEED encryption.
-
Field Summary
Fields Modifier and Type Field Description static EncryptionCHACHA20POLY1305Deprecated.UseCHACHA20instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanin(Encryption... values)Determine whether this instance is equal to one of the given instances.booleanin(Encryption value1, Encryption value2)Determine whether this instance is equal to one of the given instances.booleanin(Encryption value1, Encryption value2, Encryption value3)Determine whether this instance is equal to one of the given instances.static booleanisFull(EnumSet<Encryption> encryptions)Determine whether the given set is "full" (meaning it contains all possible values).static EncryptionvalueOf(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
-
NULL
public static final Encryption NULL
No encryption.
-
AES256GCM
public static final Encryption AES256GCM
AES encryption with 256-bit keys in Galois counter mode (GCM).
-
AES256CCM
public static final Encryption AES256CCM
AES encryption with 256-bit keys in CBC-MAC Mode (CCM).
-
AES256CCM8
public static final Encryption AES256CCM8
AES encryption with 256-bit keys in CBC-MAC Mode (CCM) with an 8-Octet Integrity Check Value.
-
AES256
public static final Encryption AES256
AES encryption with 256-bit keys.
-
AES128GCM
public static final Encryption AES128GCM
AES encryption with 128-bit keys in Galois counter mode (GCM).
-
AES128CCM
public static final Encryption AES128CCM
AES encryption with 128-bit keys in CBC-MAC Mode (CCM).
-
AES128CCM8
public static final Encryption AES128CCM8
AES encryption with 128-bit keys in CBC-MAC Mode (CCM) with an 8-Octet Integrity Check Value.
-
AES128
public static final Encryption AES128
AES encryption with 128-bit keys.
-
CAMELLIA256
public static final Encryption CAMELLIA256
Camellia encryption with 256-bit keys.
-
CAMELLIA128
public static final Encryption CAMELLIA128
Camellia encryption with 128-bit keys.
-
_3DES
public static final Encryption _3DES
Triple-DES encryption.
-
DES
public static final Encryption DES
Simple DES encryption.
-
IDEA
public static final Encryption IDEA
IDEA encryption.
-
GOST2814789CNT
public static final Encryption GOST2814789CNT
GOST 28147-89 encryption as defined in RFC 5830.
-
SEED
public static final Encryption SEED
SEED encryption.
-
FZA
public static final Encryption FZA
Fortezza encryption.
-
RC4
public static final Encryption RC4
RC4 encryption.
-
RC2
public static final Encryption RC2
RC2 encryption.
-
CHACHA20
public static final Encryption CHACHA20
ChaCha20 encryption.
-
ARIA256GCM
public static final Encryption ARIA256GCM
ARIA encryption with 256-bit keys in Galois counter mode (GCM).
-
ARIA256
public static final Encryption ARIA256
ARIA encryption with 256-bit keys.
-
ARIA128GCM
public static final Encryption ARIA128GCM
ARIA encryption with 128-bit keys in Galois counter mode (GCM).
-
ARIA128
public static final Encryption ARIA128
ARIA encryption with 128-bit.
-
-
Field Detail
-
CHACHA20POLY1305
@Deprecated public static final Encryption CHACHA20POLY1305
Deprecated.UseCHACHA20instead.Legacy name forCHACHA20.
-
-
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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isFull
public static boolean isFull(EnumSet<Encryption> encryptions)
Determine whether the given set is "full" (meaning it contains all possible values).- Parameters:
encryptions- the set- Returns:
trueif the set is full,falseotherwise
-
in
public boolean in(Encryption value1, Encryption value2)
Determine whether this instance is equal to one of the given instances.- Parameters:
value1- the first instancevalue2- the second instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
public boolean in(Encryption value1, Encryption value2, Encryption value3)
Determine whether this instance is equal to one of the given instances.- Parameters:
value1- the first instancevalue2- the second instancevalue3- the third instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
public boolean in(Encryption... values)
Determine whether this instance is equal to one of the given instances.- Parameters:
values- the values to match against- Returns:
trueif one of the instances matches this one,falseotherwise
-
-