ZipArchiveSignature

data class ZipArchiveSignature(val dataChunkIndex: Int, val rangeWithinDataChunk: ByteRange, val sha1Hash: String)

Contains the "signature" of a ZIP archive as a SHA-1 hash value, and information on how it was calculated. This can be used to identify a ZIP archive using only a small portion of the ZIP archive data.

Constructors

Link copied to clipboard
fun ZipArchiveSignature(dataChunkIndex: Int, rangeWithinDataChunk: ByteRange, sha1Hash: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The array index into ZipArchiveInformation.dataChunkDescriptors pointing out a specific ByteRange (data chunk) that was fetched in order to calculate the ZIP archive signature.

Link copied to clipboard

The byte range within the data chunk defined by dataChunkIndex that should be used to calculate the ZIP archive signature value.

Link copied to clipboard

The calculated signature value as a lower-cased hex string.