Package io.gravitee.am.service.utils
Class CertificateTimeComparator
java.lang.Object
io.gravitee.am.service.utils.CertificateTimeComparator
- All Implemented Interfaces:
Comparator<Certificate>
Always take the most recent certificate but if 2 certs have the same creation date
we take the one with the highest expiration date
- Author:
- Eric LELEU (eric.leleu at graviteesource.com), GraviteeSource Team
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CertificateTimeComparator
public CertificateTimeComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Certificate>
-