Class CadesTimestamp

java.lang.Object
org.digidoc4j.impl.asic.cades.CadesTimestamp
All Implemented Interfaces:
Serializable

public class CadesTimestamp extends Object implements Serializable
An entity for handling instances of CAdES timestamp tokens.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CadesTimestamp(eu.europa.esig.dss.model.DSSDocument timestampDocument)
    Creates an instance of CadesTimestamp by wrapping the specified DSSDocument.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the signing certificate of this timestamp token, if available.
    Returns the creation time of this timestamp token.
    eu.europa.esig.dss.model.DSSDocument
    Returns the DSSDocument of the timestamp token.
    org.bouncycastle.tsp.TimeStampToken
    Returns the raw TimeStampToken that this timestamp represents.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public X509Cert 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

      public Date 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 raw TimeStampToken that 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