Class TimestampTokenConverter

java.lang.Object
eu.europa.esig.dss.ws.signature.common.TimestampTokenConverter

public class TimestampTokenConverter extends Object
Contains utils to convert TimestampDTO to TimestampToken and vice versa
  • Method Summary

    Modifier and Type
    Method
    Description
    static eu.europa.esig.dss.ws.dto.TimestampDTO
    toTimestampDTO(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken)
    Converts TimestampTokens to TimestampDTOs
    static eu.europa.esig.dss.spi.x509.tsp.TimestampToken
    toTimestampToken(eu.europa.esig.dss.ws.dto.TimestampDTO timestampDTO)
    Converts TimestampDTOs to TimestampTokens
    static List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken>
    toTimestampTokens(List<eu.europa.esig.dss.ws.dto.TimestampDTO> timestampDTOs)
    Converts a list of TimestampDTOs to a list of TimestampTokens

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toTimestampTokens

      public static List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> toTimestampTokens(List<eu.europa.esig.dss.ws.dto.TimestampDTO> timestampDTOs)
      Converts a list of TimestampDTOs to a list of TimestampTokens
      Parameters:
      timestampDTOs - list of TimestampDTOs
      Returns:
      a list of TimestampTokens
    • toTimestampToken

      public static eu.europa.esig.dss.spi.x509.tsp.TimestampToken toTimestampToken(eu.europa.esig.dss.ws.dto.TimestampDTO timestampDTO) throws eu.europa.esig.dss.model.DSSException
      Converts TimestampDTOs to TimestampTokens
      Parameters:
      timestampDTO - TimestampDTO
      Returns:
      TimestampToken
      Throws:
      eu.europa.esig.dss.model.DSSException
    • toTimestampDTO

      public static eu.europa.esig.dss.ws.dto.TimestampDTO toTimestampDTO(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken)
      Converts TimestampTokens to TimestampDTOs
      Parameters:
      timestampToken - TimestampToken
      Returns:
      TimestampDTO