Class SignatureTimestampIdentifierBuilder
java.lang.Object
eu.europa.esig.dss.spi.x509.tsp.TimestampIdentifierBuilder
eu.europa.esig.dss.spi.validation.timestamp.SignatureTimestampIdentifierBuilder
- All Implemented Interfaces:
IdentifierBuilder,Serializable
Builds an identifier for a time-stamp token encapsulated within a signature
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.tsp.TimestampIdentifierBuilder
timestampTokenBinaries -
Constructor Summary
ConstructorsConstructorDescriptionSignatureTimestampIdentifierBuilder(byte[] timestampTokenBinaries) Default constructor to build an identifier for time-stamp token binaries from a signatureSignatureTimestampIdentifierBuilder(org.bouncycastle.tsp.TimeStampToken timeStampToken) Constructor to build an identifier for a time-stamp token from a signature -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns a position of a time-stamp token within a document among other time-stampssetAttribute(SignatureAttribute attribute) Sets a signature attribute encapsulating the time-stamp tokensetOrderOfAttribute(Integer orderOfAttribute) Sets position of the time-stamp carrying attribute within the signaturesetOrderWithinAttribute(Integer orderWithinAttribute) Sets position of the time-stamp within its carrying attributesetSignature(AdvancedSignature signature) Sets signature corresponding to the time-stamp tokenMethods inherited from class eu.europa.esig.dss.spi.x509.tsp.TimestampIdentifierBuilder
build, buildBinaries, getUniquePositionId, setFilename, writeTimestampBinaries, writeTimestampPosition
-
Constructor Details
-
SignatureTimestampIdentifierBuilder
public SignatureTimestampIdentifierBuilder(byte[] timestampTokenBinaries) Default constructor to build an identifier for time-stamp token binaries from a signature- Parameters:
timestampTokenBinaries- binaries of the time-stamp token
-
SignatureTimestampIdentifierBuilder
public SignatureTimestampIdentifierBuilder(org.bouncycastle.tsp.TimeStampToken timeStampToken) Constructor to build an identifier for a time-stamp token from a signature- Parameters:
timeStampToken-TimeStampToken
-
-
Method Details
-
setSignature
Sets signature corresponding to the time-stamp token- Parameters:
signature-AdvancedSignature- Returns:
- this
SignatureTimestampIdentifierBuilder
-
setAttribute
Sets a signature attribute encapsulating the time-stamp token- Parameters:
attribute-SignatureAttribute- Returns:
- this
SignatureTimestampIdentifierBuilder
-
setOrderOfAttribute
Sets position of the time-stamp carrying attribute within the signature- Parameters:
orderOfAttribute- position of the attribute- Returns:
- this
SignatureTimestampIdentifierBuilder
-
setOrderWithinAttribute
Sets position of the time-stamp within its carrying attribute- Parameters:
orderWithinAttribute- position of the time-stamp within the attribute- Returns:
- this
SignatureTimestampIdentifierBuilder
-
getTimestampPosition
Description copied from class:TimestampIdentifierBuilderReturns a position of a time-stamp token within a document among other time-stamps- Overrides:
getTimestampPositionin classTimestampIdentifierBuilder- Returns:
- time-stamp position identifier
-