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 TimestampDTO
toTimestampDTO(TimestampToken timestampToken)
ConvertsTimestampToken
s toTimestampDTO
sstatic TimestampToken
toTimestampToken(TimestampDTO timestampDTO)
ConvertsTimestampDTO
s toTimestampToken
sstatic List<TimestampToken>
toTimestampTokens(List<TimestampDTO> timestampDTOs)
Converts a list ofTimestampDTO
s to a list ofTimestampToken
s
-
Constructor Details
-
TimestampTokenConverter
public TimestampTokenConverter()
-
-
Method Details
-
toTimestampTokens
Converts a list ofTimestampDTO
s to a list ofTimestampToken
s- Parameters:
timestampDTOs
- list ofTimestampDTO
s- Returns:
- a list of
TimestampToken
s
-
toTimestampToken
ConvertsTimestampDTO
s toTimestampToken
s- Parameters:
timestampDTO
-TimestampDTO
- Returns:
TimestampToken
- Throws:
DSSException
-
toTimestampDTO
ConvertsTimestampToken
s toTimestampDTO
s- Parameters:
timestampToken
-TimestampToken
- Returns:
TimestampDTO
-