Class TimeStampTokenProductionComparator

  • All Implemented Interfaces:
    Serializable, Comparator<org.bouncycastle.tsp.TimeStampToken>

    public class TimeStampTokenProductionComparator
    extends Object
    implements Comparator<org.bouncycastle.tsp.TimeStampToken>, Serializable
    The class used to compare production time of TimeStampTokens Class checks the production time of timestamps and their covered data The method compare() returns -1 if the timeStampTokenOne was created before timeStampTokenTwo 0 if TimeStampTokens were created in the same 1 if the timeStampTokenOne was created after timeStampTokenTwo
    See Also:
    Serialized Form
    • Constructor Detail

      • TimeStampTokenProductionComparator

        public TimeStampTokenProductionComparator()
    • Method Detail

      • compare

        public int compare​(org.bouncycastle.tsp.TimeStampToken timeStampTokenOne,
                           org.bouncycastle.tsp.TimeStampToken timeStampTokenTwo)
        Specified by:
        compare in interface Comparator<org.bouncycastle.tsp.TimeStampToken>
      • after

        public boolean after​(org.bouncycastle.tsp.TimeStampToken timeStampTokenOne,
                             org.bouncycastle.tsp.TimeStampToken timeStampTokenTwo)
        Returns TRUE if timeStampTokenOne was created after timeStampTokenTwo
        Parameters:
        timeStampTokenOne - TimeStampToken
        timeStampTokenTwo - TimeStampToken
        Returns:
        TRUE if the first TimeStampToken has been created after the second timestamp, FALSE otherwise