Enum PKWareExtraHeader.EncryptionAlgorithm
java.lang.Object
java.lang.Enum<PKWareExtraHeader.EncryptionAlgorithm>
org.apache.commons.compress.archivers.zip.PKWareExtraHeader.EncryptionAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<PKWareExtraHeader.EncryptionAlgorithm>
- Enclosing class:
- PKWareExtraHeader
public static enum PKWareExtraHeader.EncryptionAlgorithm
extends Enum<PKWareExtraHeader.EncryptionAlgorithm>
Encryption algorithm.
- Since:
- 1.11
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private static final Map<Integer,
PKWareExtraHeader.EncryptionAlgorithm> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
EncryptionAlgorithm
(int code) private constructor for enum style class. -
Method Summary
Modifier and TypeMethodDescriptiongetAlgorithmByCode
(int code) Returns the EncryptionAlgorithm for the given code or null if the method is not known.int
getCode()
the algorithm id.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DES
-
RC2pre52
-
TripleDES168
-
TripleDES192
-
AES128
-
AES192
-
AES256
-
RC2
-
RC4
-
UNKNOWN
-
-
Field Details
-
code
private final int code -
codeToEnum
-
-
Constructor Details
-
EncryptionAlgorithm
private EncryptionAlgorithm(int code) private constructor for enum style class.
-
-
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
-
getCode
public int getCode()the algorithm id.- Returns:
- the PKWare AlgorithmId
-
getAlgorithmByCode
Returns the EncryptionAlgorithm for the given code or null if the method is not known.- Parameters:
code
- the code of the algorithm- Returns:
- the EncryptionAlgorithm for the given code or null if the method is not known
-