Package org.digidoc4j.impl.asic.cades
Class CadesTimestamp
java.lang.Object
org.digidoc4j.impl.asic.cades.CadesTimestamp
- All Implemented Interfaces:
Serializable
An entity for handling instances of CAdES timestamp tokens.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCadesTimestamp(eu.europa.esig.dss.model.DSSDocument timestampDocument) Creates an instance of CadesTimestamp by wrapping the specified DSSDocument. -
Method Summary
Modifier and TypeMethodDescriptionReturns the signing certificate of this timestamp token, if available.Returns the creation time of this timestamp token.eu.europa.esig.dss.model.DSSDocumentReturns the DSSDocument of the timestamp token.org.bouncycastle.tsp.TimeStampTokenReturns the rawTimeStampTokenthat this timestamp represents.
-
Constructor Details
-
CadesTimestamp
public CadesTimestamp(eu.europa.esig.dss.model.DSSDocument timestampDocument) Creates an instance of CadesTimestamp by wrapping the specified DSSDocument. NB: the constructor does not parse the timestamp token! The timestamp token is parsed lazily as needed.- Parameters:
timestampDocument- DSSDocument of a CAdES timestamp token
-
-
Method Details
-
getTimestampDocument
public eu.europa.esig.dss.model.DSSDocument getTimestampDocument()Returns the DSSDocument of the timestamp token.- Returns:
- DSSDocument of the timestamp token
-
getCertificate
Returns the signing certificate of this timestamp token, if available. Calling this method triggers the parsing process of the timestamp token if it has not been parsed already.- Returns:
- timestamp token signing certificate or
null
-
getCreationTime
Returns the creation time of this timestamp token. Calling this method triggers the parsing process of the timestamp token if it has not been parsed already.- Returns:
- timestamp token creation time
-
getTimeStampToken
public org.bouncycastle.tsp.TimeStampToken getTimeStampToken()Returns the rawTimeStampTokenthat this timestamp represents. Calling this method triggers the parsing process of the timestamp token if it has not been parsed already.- Returns:
- raw timestamp token
-