Interface TimestampDataBuilder
-
- All Known Implementing Classes:
CAdESTimestampDataBuilder,PAdESTimestampDataBuilder,XAdESTimestampDataBuilder
public interface TimestampDataBuilder
-
-
Method Summary
Modifier and Type Method Description byte[]getArchiveTimestampData(TimestampToken timestampToken)Archive timestamp seals the data of the signature in a specific order.byte[]getContentTimestampData(TimestampToken timestampToken)Returns the content timestamp data (timestamped or to be).byte[]getSignatureTimestampData(TimestampToken timestampToken)Returns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.byte[]getTimestampX1Data(TimestampToken timestampToken)Returns the data to be time-stamped.byte[]getTimestampX2Data(TimestampToken timestampToken)Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).
-
-
-
Method Detail
-
getContentTimestampData
byte[] getContentTimestampData(TimestampToken timestampToken)
Returns the content timestamp data (timestamped or to be).- Parameters:
timestampToken-- Returns:
bytearray representing the canonicalized data to be timestamped
-
getSignatureTimestampData
byte[] getSignatureTimestampData(TimestampToken timestampToken)
Returns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.- Parameters:
timestampToken-- Returns:
bytearray representing the canonicalized data to be timestamped
-
getTimestampX1Data
byte[] getTimestampX1Data(TimestampToken timestampToken)
Returns the data to be time-stamped. The data contains the digital signature (XAdES example: ds:SignatureValue element), the signature time-stamp(s) present in the AdES-T form, the certification path references and the revocation status references.- Parameters:
timestampToken-TimestampTokenor null during the creation process- Returns:
bytearray representing the canonicalized data to be timestamped
-
getTimestampX2Data
byte[] getTimestampX2Data(TimestampToken timestampToken)
Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Returns:
bytearray representing the canonicalized data to be timestamped
-
getArchiveTimestampData
byte[] getArchiveTimestampData(TimestampToken timestampToken)
Archive timestamp seals the data of the signature in a specific order. We need to retrieve the data for each timestamp.- Parameters:
timestampToken- null when adding a new archive timestamp- Returns:
bytearray representing the canonicalized data to be timestamped
-
-