Class SignatureCreationDateComparator

  • All Implemented Interfaces:
    java.util.Comparator<org.bouncycastle.openpgp.PGPSignature>

    public class SignatureCreationDateComparator
    extends java.lang.Object
    implements java.util.Comparator<org.bouncycastle.openpgp.PGPSignature>
    Comparator which can be used to sort signatures with regard to their creation time.
    • Constructor Detail

      • SignatureCreationDateComparator

        public SignatureCreationDateComparator()
        Create a new comparator which sorts signatures old to new.
      • SignatureCreationDateComparator

        public SignatureCreationDateComparator​(SignatureCreationDateComparator.Order order)
        Create a new comparator which sorts signatures according to the passed ordering.
        Parameters:
        order - ordering
    • Method Detail

      • compare

        public int compare​(org.bouncycastle.openpgp.PGPSignature one,
                           org.bouncycastle.openpgp.PGPSignature two)
        Specified by:
        compare in interface java.util.Comparator<org.bouncycastle.openpgp.PGPSignature>