Class TSTInfoBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.tsp.TSTInfoBC
All Implemented Interfaces:
IASN1Encodable, ITSTInfo

public class TSTInfoBC extends ASN1EncodableBC implements ITSTInfo
Wrapper class for TSTInfo.
  • Constructor Details

    • TSTInfoBC

      public TSTInfoBC (org.bouncycastle.asn1.tsp.TSTInfo tstInfo)
      Creates new wrapper instance for TSTInfo.
      Parameters:
      tstInfo - TSTInfo to be wrapped
  • Method Details

    • getTstInfo

      public org.bouncycastle.asn1.tsp.TSTInfo getTstInfo()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped TSTInfo.
    • getMessageImprint

      public IMessageImprint getMessageImprint()
      Calls actual getMessageImprint method for the wrapped TSTInfo object.
      Specified by:
      getMessageImprint in interface ITSTInfo
      Returns:
      IMessageImprint wrapper for the received MessageImprint object.
    • getGenTime

      public Date getGenTime() throws ParseException
      Calls actual getGenTime method for the wrapped TSTInfo object and gets date.
      Specified by:
      getGenTime in interface ITSTInfo
      Returns:
      the received Date object.
      Throws:
      ParseException - when parsing cannot be completed.