Package org.c02e.jpgpj
Enum EncryptionAlgorithm
- java.lang.Object
-
- java.lang.Enum<EncryptionAlgorithm>
-
- org.c02e.jpgpj.EncryptionAlgorithm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EncryptionAlgorithm>
public enum EncryptionAlgorithm extends java.lang.Enum<EncryptionAlgorithm>
Available symmetric-key encryption algorithms for encrypting message content.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES128
AES192
AES256
Blowfish
Camellia128
Camellia192
Camellia256
CAST5
IDEA
Reserved5
Reserved6
TripleDES
Twofish
Unencrypted
-
Constructor Summary
Constructors Modifier Constructor Description private
EncryptionAlgorithm()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncryptionAlgorithm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EncryptionAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unencrypted
public static final EncryptionAlgorithm Unencrypted
-
IDEA
public static final EncryptionAlgorithm IDEA
-
TripleDES
public static final EncryptionAlgorithm TripleDES
-
CAST5
public static final EncryptionAlgorithm CAST5
-
Blowfish
public static final EncryptionAlgorithm Blowfish
-
Reserved5
public static final EncryptionAlgorithm Reserved5
-
Reserved6
public static final EncryptionAlgorithm Reserved6
-
AES128
public static final EncryptionAlgorithm AES128
-
AES192
public static final EncryptionAlgorithm AES192
-
AES256
public static final EncryptionAlgorithm AES256
-
Twofish
public static final EncryptionAlgorithm Twofish
-
Camellia128
public static final EncryptionAlgorithm Camellia128
-
Camellia192
public static final EncryptionAlgorithm Camellia192
-
Camellia256
public static final EncryptionAlgorithm Camellia256
-
-
Method Detail
-
values
public static EncryptionAlgorithm[] 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 (EncryptionAlgorithm c : EncryptionAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncryptionAlgorithm 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
-
-