Package eu.europa.esig.dss.validation
Class ByteRange
java.lang.Object
eu.europa.esig.dss.validation.ByteRange
public class ByteRange extends Object
This class represents a ByteRange of a PDF Revision
-
Constructor Summary
Constructors Constructor Description ByteRange(int[] byteRange)
This constructor represents a ByteRange extracted from a Signature Dictionary of a signed/timestamped revision -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
int
getFirstPartEnd()
Returns the last byte number of the first part of the revisionint
getFirstPartStart()
Returns the first byte number of the first part of the revisionint
getLength()
Returns a complete revision lengthint
getSecondPartEnd()
Returns the last byte number of the second part of the revisionint
getSecondPartStart()
Returns the first byte number of the second part of the revisionint
hashCode()
List<BigInteger>
toBigIntegerList()
Transforms the ByteRange to a list of BigIntegersString
toString()
void
validate()
Checks a validity of the ByteRange according to PDF specifications
-
Constructor Details
-
ByteRange
public ByteRange(int[] byteRange)This constructor represents a ByteRange extracted from a Signature Dictionary of a signed/timestamped revision- Parameters:
byteRange
- byte range of a signature/timestamp
-
-
Method Details
-
getLength
public int getLength()Returns a complete revision length- Returns:
- length
-
getFirstPartStart
public int getFirstPartStart()Returns the first byte number of the first part of the revision- Returns:
- first byte
-
getFirstPartEnd
public int getFirstPartEnd()Returns the last byte number of the first part of the revision- Returns:
- first part end byte
-
getSecondPartStart
public int getSecondPartStart()Returns the first byte number of the second part of the revision- Returns:
- second part start byte
-
getSecondPartEnd
public int getSecondPartEnd()Returns the last byte number of the second part of the revision- Returns:
- second part end byte
-
toBigIntegerList
Transforms the ByteRange to a list of BigIntegers- Returns:
- a list of
BigInteger
s
-
validate
public void validate()Checks a validity of the ByteRange according to PDF specifications -
toString
-
hashCode
public int hashCode() -
equals
-