Class SignatureValidityComparator

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

    public class SignatureValidityComparator
    extends java.lang.Object
    implements java.util.Comparator<org.bouncycastle.openpgp.PGPSignature>
    Comparator which sorts signatures based on an ordering and on revocation hardness. If a list of signatures gets ordered using this comparator, hard revocations will always come first. Further, signatures are ordered by date according to the SignatureCreationDateComparator.Order.
    • 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>