Top Description Fields Constructors Methods
org.apache.commons.compress.archivers.zip

public Class X0015_CertificateIdForFile

extends PKWareExtraHeader
Class Inheritance
Imports
java.util.zip.ZipException

X.509 Certificate ID and Signature for individual file (0x0015).

This field contains the information about which certificate in the PKCS#7 store was used to sign a particular file. It also contains the signature data. This field can appear multiple times, but can only appear once per certificate.

Note

all fields stored in Intel low-byte/high-byte order.

        Value     Size     Description
        -----     ----     -----------
(CID)   0x0015    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    Signature Data
Since
1.11

Field Summary

Modifier and TypeField and Description
private PKWareExtraHeader.HashAlgorithm
pack-priv static final ZipShort
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PKWareExtraHeader.HashAlgorithm

Returns:

the hash algorithm
getHashAlgorithm
()

Gets hash algorithm.

public int

Returns:

the record count
getRecordCount
()

Gets record count.

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
)

Overrides org.apache.commons.compress.archivers.zip.PKWareExtraHeader.parseFromCentralDirectoryData.

Implements org.apache.commons.compress.archivers.zip.ZipExtraField.parseFromCentralDirectoryData.

Populate data from this array as if it was in central directory data.
Inherited from org.apache.commons.compress.archivers.zip.PKWareExtraHeader:
assertMinimalLengthgetCentralDirectoryDatagetCentralDirectoryLengthgetHeaderIdgetLocalFileDataDatagetLocalFileDataLengthparseFromLocalFileDatasetCentralDirectoryDatasetLocalFileDataData

Field Detail

hashAlgback to summary
private PKWareExtraHeader.HashAlgorithm hashAlg
HEADER_IDback to summary
pack-priv static final ZipShort HEADER_ID
rcountback to summary
private int rcount

Constructor Detail

X0015_CertificateIdForFileback to summary
public X0015_CertificateIdForFile()

Method Detail

getHashAlgorithmback to summary
public PKWareExtraHeader.HashAlgorithm getHashAlgorithm()

Gets hash algorithm.

Returns:PKWareExtraHeader.HashAlgorithm

the hash algorithm

getRecordCountback to summary
public int getRecordCount()

Gets record count.

Returns:int

the record count

parseFromCentralDirectoryDataback to summary
public void parseFromCentralDirectoryData(final byte[] data, final int offset, final int length) throws ZipException

Overrides org.apache.commons.compress.archivers.zip.PKWareExtraHeader.parseFromCentralDirectoryData.

Implements org.apache.commons.compress.archivers.zip.ZipExtraField.parseFromCentralDirectoryData.

Doc from org.apache.commons.compress.archivers.zip.ZipExtraField.parseFromCentralDirectoryData.

Populate data from this array as if it was in central directory data.

Parameters
data:byte[]

Doc from org.apache.commons.compress.archivers.zip.PKWareExtraHeader.parseFromCentralDirectoryData.

the array of bytes.

offset:int

Doc from org.apache.commons.compress.archivers.zip.PKWareExtraHeader.parseFromCentralDirectoryData.

the source location in the data array.

length:int

Doc from org.apache.commons.compress.archivers.zip.PKWareExtraHeader.parseFromCentralDirectoryData.

the number of bytes to use in the data array.

Annotations
@Override
Exceptions
ZipException:
on error