question: public static void validateCertificate ( X509Certificate cert ) { try { cert . checkValidity ( ) ; } catch ( Exception e ) { logAndThrow ( String . format ( "Certificate is not valid: %s" , e . getMessage ( ) ) ) ; } }
target:  Checks validity of the given certificate.