Class X0016_CertificateIdForCentralDirectory
java.lang.Object
org.apache.commons.compress.archivers.zip.PKWareExtraHeader
org.apache.commons.compress.archivers.zip.X0016_CertificateIdForCentralDirectory
- All Implemented Interfaces:
ZipExtraField
X.509 Certificate ID and Signature for central directory (0x0016).
This field contains the information about which certificate in the PKCS#7 store was used to sign the central directory structure. When the Central Directory Encryption feature is enabled for a ZIP file, this record will appear in the Archive Extra Data Record, otherwise it will appear in the first central directory record.
Note: all fields stored in Intel low-byte/high-byte order.
Value Size Description ----- ---- ----------- (CDID) 0x0016 2 bytes Tag for this "extra" block type TSize 2 bytes Size of data that follows RCount 4 bytes Number of recipients. (inferred) HashAlg 2 bytes Hash algorithm identifier. (inferred) TData TSize Data
- Since:
- 1.11
- This class is not thread-safe
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.compress.archivers.zip.PKWareExtraHeader
PKWareExtraHeader.EncryptionAlgorithm, PKWareExtraHeader.HashAlgorithm
-
Field Summary
Fields inherited from interface org.apache.commons.compress.archivers.zip.ZipExtraField
EXTRAFIELD_HEADER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets hash algorithm.int
Gets record count.void
parseFromCentralDirectoryData
(byte[] data, int offset, int length) Populate data from this array as if it was in central directory data.Methods inherited from class org.apache.commons.compress.archivers.zip.PKWareExtraHeader
assertMinimalLength, getCentralDirectoryData, getCentralDirectoryLength, getHeaderId, getLocalFileDataData, getLocalFileDataLength, parseFromLocalFileData, setCentralDirectoryData, setLocalFileDataData
-
Constructor Details
-
X0016_CertificateIdForCentralDirectory
-
-
Method Details
-
getHashAlgorithm
Gets hash algorithm.- Returns:
- the hash algorithm
-
getRecordCount
Gets record count.- Returns:
- the record count
-
parseFromCentralDirectoryData
Description copied from interface:ZipExtraField
Populate data from this array as if it was in central directory data.- Specified by:
parseFromCentralDirectoryData
in interfaceZipExtraField
- Overrides:
parseFromCentralDirectoryData
in classPKWareExtraHeader
- Parameters:
data
- the array of bytes.offset
- the source location in the data array.length
- the number of bytes to use in the data array.- Throws:
ZipException
- on error- See Also:
-