public enum AesKeyStrength extends Enum<AesKeyStrength>
| Enum Constant and Description |
|---|
KEY_STRENGTH_128
128-bit AES key length
|
KEY_STRENGTH_192
192-bit AES key length
|
KEY_STRENGTH_256
256-bit AES key length
|
| Modifier and Type | Method and Description |
|---|---|
static AesKeyStrength |
getAesKeyStrengthFromRawCode(int code)
Get a AesKeyStrength given a code from the ZIP file
|
int |
getKeyLength()
Get the key length in bytes that this AesKeyStrength represents
|
int |
getMacLength() |
int |
getRawCode()
Get the code written to the ZIP file
|
int |
getSaltLength() |
static AesKeyStrength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AesKeyStrength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AesKeyStrength KEY_STRENGTH_128
public static final AesKeyStrength KEY_STRENGTH_192
public static final AesKeyStrength KEY_STRENGTH_256
public static AesKeyStrength[] values()
for (AesKeyStrength c : AesKeyStrength.values()) System.out.println(c);
public static AesKeyStrength valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getRawCode()
public int getSaltLength()
public int getMacLength()
public int getKeyLength()
public static AesKeyStrength getAesKeyStrengthFromRawCode(int code)
code - the code from the ZIP fileCopyright © 2021. All rights reserved.