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-
Constructor Summary
Constructors Constructor Description TimestampTokenConverter() -
Method Summary
Modifier and Type Method Description static TimestampDTOtoTimestampDTO(TimestampToken timestampToken)ConvertsTimestampTokens toTimestampDTOsstatic TimestampTokentoTimestampToken(TimestampDTO timestampDTO)ConvertsTimestampDTOs toTimestampTokensstatic List<TimestampToken>toTimestampTokens(List<TimestampDTO> timestampDTOs)Converts a list ofTimestampDTOs to a list ofTimestampTokens
-
Constructor Details
-
TimestampTokenConverter
public TimestampTokenConverter()
-
-
Method Details
-
toTimestampTokens
Converts a list ofTimestampDTOs to a list ofTimestampTokens- Parameters:
timestampDTOs- list ofTimestampDTOs- Returns:
- a list of
TimestampTokens
-
toTimestampToken
ConvertsTimestampDTOs toTimestampTokens- Parameters:
timestampDTO-TimestampDTO- Returns:
TimestampToken- Throws:
DSSException
-
toTimestampDTO
ConvertsTimestampTokens toTimestampDTOs- Parameters:
timestampToken-TimestampToken- Returns:
TimestampDTO
-