/** * This method returns the notAfter date for a given certificate * * @param certificateId * the certificate id * @return the notAfter date */ public Date getCertificateNotAfter(String certificateId) { XmlChainItem cert = getCertificate(certificateId); if (cert != null) { return cert.getNotAfter(); } return null; }