This base class acts as a marker so you know you can ignore all extra fields that extend this class if you are not interested in the meta data of PKWare strong encryption.
Algorithm IDs - integer identifier of the encryption algorithm from the following range| Modifier and Type | Class and Description |
|---|---|
| public static enum | PKWareExtraHeader.EncryptionAlgorithm
Encryption algorithm. |
| public static enum | PKWareExtraHeader.HashAlgorithm
Hash Algorithm |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | centralData
Extra field data in central directory - without Header-ID or length specifier. |
| private final ZipShort | |
| private byte[] | localData
Extra field data in local file data - without Header-ID or length specifier. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| public byte[] | Returns: the central data if present, else return the local file dataImplements org. |
| public ZipShort | Returns: the central data lengthImplements org. |
| public ZipShort | Returns: the header idImplements org. |
| public byte[] | Returns: the local dataImplements org. |
| public ZipShort | Returns: the length of the local dataImplements org. |
| public void | parseFromCentralDirectoryData(final byte[]
the array of bytes. data, final int the source location in the data array. offset, final int the number of bytes to use in the data array. length)Implements org. |
| public void | parseFromLocalFileData(final byte[]
the array of bytes. data, final int the source location in the data array. offset, final int the number of bytes to use in the data array. length)Implements org. |
| public void | setCentralDirectoryData(final byte[]
the data to use data)Sets the extra field data in central directory. |
| public void | setLocalFileDataData(final byte[]
the field data to use data)Sets the extra field data in the local file data - without Header-ID or length specifier. |
| centralData | back to summary |
|---|---|
| private byte[] centralData Extra field data in central directory - without Header-ID or length specifier. | |
| headerId | back to summary |
|---|---|
| private final ZipShort headerId | |
| localData | back to summary |
|---|---|
| private byte[] localData Extra field data in local file data - without Header-ID or length specifier. | |
| PKWareExtraHeader | back to summary |
|---|---|
| protected PKWareExtraHeader(final ZipShort headerId) | |
| assertMinimalLength | back to summary |
|---|---|
| protected final void assertMinimalLength(final int minimum, final int length) throws ZipException | |
| getCentralDirectoryData | back to summary |
|---|---|
| public byte[] getCentralDirectoryData() Implements org. Gets the central data.
| |
| getCentralDirectoryLength | back to summary |
|---|---|
| public ZipShort getCentralDirectoryLength() Implements org. Gets the central data length. If there is no central data, get the local file data length. | |
| getHeaderId | back to summary |
|---|---|
| public ZipShort getHeaderId() Implements org. Gets the header id. | |
| getLocalFileDataData | back to summary |
|---|---|
| public byte[] getLocalFileDataData() Implements org. Gets the local data.
| |
| getLocalFileDataLength | back to summary |
|---|---|
| public ZipShort getLocalFileDataLength() Implements org. Gets the length of the local data. | |
| parseFromCentralDirectoryData | back to summary |
|---|---|
| public void parseFromCentralDirectoryData(final byte[] data, final int offset, final int length) throws ZipException Implements org. Doc from org. Populate data from this array as if it was in central directory data.
| |
| parseFromLocalFileData | back to summary |
|---|---|
| public void parseFromLocalFileData(final byte[] data, final int offset, final int length) throws ZipException Implements org. Doc from org. Populate data from this array as if it was in local file data.
| |
| setCentralDirectoryData | back to summary |
|---|---|
| public void setCentralDirectoryData(final byte[] data) Sets the extra field data in central directory.
| |
| setLocalFileDataData | back to summary |
|---|---|
| public void setLocalFileDataData(final byte[] data) Sets the extra field data in the local file data - without Header-ID or length specifier.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| private final int | |
| private static final Map | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PKWareExtraHeader. | Returns: the EncryptionAlgorithm for the given code or null if the method is not knownthe code of the algorithm code)Returns the EncryptionAlgorithm for the given code or null if the method is not known. |
| public int | |
| public static PKWareExtraHeader. | |
| public static PKWareExtraHeader. |
| AES128 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| AES192 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| AES256 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| code | back to summary |
|---|---|
| private final int code | |
| codeToEnum | back to summary |
|---|---|
| private static final Map<Integer, PKWareExtraHeader. | |
| DES | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| RC2 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| RC2pre52 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| RC4 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| TripleDES168 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| TripleDES192 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| UNKNOWN | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| EncryptionAlgorithm | back to summary |
|---|---|
| private EncryptionAlgorithm(final int code) private constructor for enum style class. | |
| getAlgorithmByCode | back to summary |
|---|---|
| public static PKWareExtraHeader. Returns the EncryptionAlgorithm for the given code or null if the method is not known.
| |
| getCode | back to summary |
|---|---|
| public int getCode() the algorithm id.
| |
| valueOf | back to summary |
|---|---|
| public static PKWareExtraHeader. | |
| values | back to summary |
|---|---|
| public static PKWareExtraHeader. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final Map | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. | |
| public static final PKWareExtraHeader. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PKWareExtraHeader. | Returns: the HashAlgorithm for the given code or null if the method is not knownthe code of the algorithm code)Returns the HashAlgorithm for the given code or null if the method is not known. |
| public int | |
| public static PKWareExtraHeader. | |
| public static PKWareExtraHeader. |
| code | back to summary |
|---|---|
| private final int code | |
| codeToEnum | back to summary |
|---|---|
| private static final Map<Integer, PKWareExtraHeader. | |
| CRC32 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| MD5 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| NONE | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| RIPEND160 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| SHA1 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| SHA256 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| SHA384 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| SHA512 | back to summary |
|---|---|
| public static final PKWareExtraHeader. | |
| HashAlgorithm | back to summary |
|---|---|
| private HashAlgorithm(final int code) private constructor for enum style class. | |
| getAlgorithmByCode | back to summary |
|---|---|
| public static PKWareExtraHeader. Returns the HashAlgorithm for the given code or null if the method is not known.
| |
| getCode | back to summary |
|---|---|
| public int getCode() the hash algorithm ID.
| |
| valueOf | back to summary |
|---|---|
| public static PKWareExtraHeader. | |
| values | back to summary |
|---|---|
| public static PKWareExtraHeader. | |