Class CertificateTimeComparator

java.lang.Object
io.gravitee.am.service.utils.CertificateTimeComparator
All Implemented Interfaces:
Comparator<Certificate>

public class CertificateTimeComparator extends Object implements 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